mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-26 03:11:06 +01:00
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:
10
outputs.tf
10
outputs.tf
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user