Skip to content

Commit fb59e4f

Browse files
soapergemmax-rocket-internet
authored andcommitted
adding IAM instance profiles to outputs, addresses #323 (#329)
* adding IAM instance profiles to outputs * updating changelog * updated README
1 parent 46ec636 commit fb59e4f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

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

1212
### Added
1313

14-
- Write your awesome addition here (by @you)
14+
- Added outputs for worker IAM instance profile(s) (by @soapergem)
1515

1616
### Changed
1717

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
169169
| config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. |
170170
| kubeconfig | kubectl config file contents for this EKS cluster. |
171171
| kubeconfig\_filename | The filename of the generated kubectl config. |
172+
| worker\_iam\_instance\_profile\_arns | default IAM instance profile ARNs for EKS worker group |
173+
| worker\_iam\_instance\_profile\_names | default IAM instance profile names for EKS worker group |
172174
| worker\_iam\_role\_arn | default IAM role ARN for EKS worker groups |
173175
| worker\_iam\_role\_name | default IAM role name for EKS worker groups |
174176
| worker\_security\_group\_id | Security group ID attached to the EKS workers. |

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ output "worker_security_group_id" {
6969
value = "${local.worker_security_group_id}"
7070
}
7171

72+
output "worker_iam_instance_profile_arns" {
73+
description = "default IAM instance profile ARN for EKS worker groups"
74+
value = "${aws_iam_instance_profile.workers.*.arn}"
75+
}
76+
77+
output "worker_iam_instance_profile_names" {
78+
description = "default IAM instance profile name for EKS worker groups"
79+
value = "${aws_iam_instance_profile.workers.*.name}"
80+
}
81+
7282
output "worker_iam_role_name" {
7383
description = "default IAM role name for EKS worker groups"
7484
value = "${aws_iam_role.workers.name}"

0 commit comments

Comments
 (0)