Adding 2 new outputs: AMI ID and work user-data (#364)

* Adding 2 new outputs: AMI ID and work user-data

* adding separate outputs to include both
This commit is contained in:
Max Williams
2019-05-07 11:09:44 +02:00
committed by GitHub
parent 1660105970
commit 60dfeca191
3 changed files with 13 additions and 1 deletions

View File

@@ -64,6 +64,16 @@ output "workers_asg_names" {
value = "${concat(aws_autoscaling_group.workers.*.id, aws_autoscaling_group.workers_launch_template.*.id)}"
}
output "workers_user_data" {
description = "User data of worker groups"
value = "${concat(data.template_file.userdata.*.rendered, data.template_file.launch_template_userdata.*.rendered)}"
}
output "workers_default_ami_id" {
description = "ID of the default worker group AMI"
value = "${data.aws_ami.eks_worker.id}"
}
output "workers_launch_template_ids" {
description = "IDs of the worker launch templates."
value = "${aws_launch_template.workers_launch_template.*.id}"