mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 00:57:28 +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:
@@ -11,9 +11,9 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Added
|
||||
|
||||
- Added outputs for `workers_user_data` and `workers_default_ami_id` (by @max-rocket-internet)
|
||||
- Added doc about spot instances (by @max-rocket-internet)
|
||||
- Added support for custom service linked role for Auto Scaling group (by @voanhduy1512)
|
||||
- Write your awesome addition here (by @you)
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@@ -179,6 +179,8 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
||||
| worker\_security\_group\_id | Security group ID attached to the EKS workers. |
|
||||
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
|
||||
| workers\_asg\_names | Names of the autoscaling groups containing workers. |
|
||||
| workers\_default\_ami\_id | ID of the default worker group AMI |
|
||||
| workers\_user\_data | User data of worker groups |
|
||||
| workers\_launch\_template\_arns | ARNs of the worker launch templates. |
|
||||
| workers\_launch\_template\_ids | IDs of the worker launch templates. |
|
||||
| workers\_launch\_template\_latest\_versions | Latest versions of the worker launch templates. |
|
||||
|
||||
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