Skip to content

Commit a43e44f

Browse files
ankitwalmax-rocket-internet
authored andcommitted
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 <[email protected]> * Update ChangeLog Added changes made to output in Changelog Signed-off-by: Ankit Wal <[email protected]>
1 parent c0ae644 commit a43e44f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
### Changed
1717

18-
- Write your awesome change here (by @you)
18+
- Updated instance_profile_names and instance_profile_arns outputs to also consider launch template as well as asg (by @ankitwal)
1919

2020
# History
2121

outputs.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@ output "worker_security_group_id" {
114114

115115
output "worker_iam_instance_profile_arns" {
116116
description = "default IAM instance profile ARN for EKS worker groups"
117-
value = aws_iam_instance_profile.workers.*.arn
117+
value = concat(
118+
aws_iam_instance_profile.workers.*.arn,
119+
aws_iam_instance_profile.workers_launch_template.*.arn
120+
)
118121
}
119122

120123
output "worker_iam_instance_profile_names" {
121124
description = "default IAM instance profile name for EKS worker groups"
122-
value = aws_iam_instance_profile.workers.*.name
125+
value = concat(
126+
aws_iam_instance_profile.workers.*.name,
127+
aws_iam_instance_profile.workers_launch_template.*.name
128+
)
123129
}
124130

125131
output "worker_iam_role_name" {

0 commit comments

Comments
 (0)