mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 00:57:28 +01:00
Update worker_iam_instance_profile outputs for launch template use (#583)
* Add launch template instance profiles to output Concat launch template and asg instance profile lists Signed-off-by: Ankit Wal <ankitwal@gmail.com> * Update ChangeLog Added changes made to output in Changelog Signed-off-by: Ankit Wal <ankitwal@thoughtworks.com>
This commit is contained in:
@@ -15,7 +15,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Changed
|
||||
|
||||
- Write your awesome change here (by @you)
|
||||
- Updated instance_profile_names and instance_profile_arns outputs to also consider launch template as well as asg (by @ankitwal)
|
||||
|
||||
# History
|
||||
|
||||
|
||||
10
outputs.tf
10
outputs.tf
@@ -114,12 +114,18 @@ output "worker_security_group_id" {
|
||||
|
||||
output "worker_iam_instance_profile_arns" {
|
||||
description = "default IAM instance profile ARN for EKS worker groups"
|
||||
value = aws_iam_instance_profile.workers.*.arn
|
||||
value = concat(
|
||||
aws_iam_instance_profile.workers.*.arn,
|
||||
aws_iam_instance_profile.workers_launch_template.*.arn
|
||||
)
|
||||
}
|
||||
|
||||
output "worker_iam_instance_profile_names" {
|
||||
description = "default IAM instance profile name for EKS worker groups"
|
||||
value = aws_iam_instance_profile.workers.*.name
|
||||
value = concat(
|
||||
aws_iam_instance_profile.workers.*.name,
|
||||
aws_iam_instance_profile.workers_launch_template.*.name
|
||||
)
|
||||
}
|
||||
|
||||
output "worker_iam_role_name" {
|
||||
|
||||
Reference in New Issue
Block a user