From fb59e4fef40f808a9d4c9f6650cbf4ceebf6e79a Mon Sep 17 00:00:00 2001 From: soapergem Date: Thu, 11 Apr 2019 08:12:01 -0500 Subject: [PATCH] adding IAM instance profiles to outputs, addresses #323 (#329) * adding IAM instance profiles to outputs * updating changelog * updated README --- CHANGELOG.md | 2 +- README.md | 2 ++ outputs.tf | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eae226..35084e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Added -- Write your awesome addition here (by @you) +- Added outputs for worker IAM instance profile(s) (by @soapergem) ### Changed diff --git a/README.md b/README.md index b5b381a..5b5a7e3 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,8 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a | config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. | | kubeconfig | kubectl config file contents for this EKS cluster. | | kubeconfig\_filename | The filename of the generated kubectl config. | +| worker\_iam\_instance\_profile\_arns | default IAM instance profile ARNs for EKS worker group | +| worker\_iam\_instance\_profile\_names | default IAM instance profile names for EKS worker group | | worker\_iam\_role\_arn | default IAM role ARN for EKS worker groups | | worker\_iam\_role\_name | default IAM role name for EKS worker groups | | worker\_security\_group\_id | Security group ID attached to the EKS workers. | diff --git a/outputs.tf b/outputs.tf index e0b5420..1521d5c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -69,6 +69,16 @@ output "worker_security_group_id" { value = "${local.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}" +} + +output "worker_iam_instance_profile_names" { + description = "default IAM instance profile name for EKS worker groups" + value = "${aws_iam_instance_profile.workers.*.name}" +} + output "worker_iam_role_name" { description = "default IAM role name for EKS worker groups" value = "${aws_iam_role.workers.name}"