Skip to content

Commit ab412fb

Browse files
eytanhanigmax-rocket-internet
authored andcommitted
Add the OIDC provider ARN to outputs (#653)
1 parent bad9604 commit ab412fb

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
2323
- Fix aws-auth config map for managed node groups (by @wbertelsen)
2424
- Added support to create IAM OpenID Connect Identity Provider to enable EKS Identity Roles for Service Accounts (IRSA). (by @alaa)
2525
- Adding node group iam role arns to outputs. (by @mukgupta)
26+
- Added the OIDC Provider ARN to outputs. (by @eytanhanig)
2627
- **Breaking:** Change logic of security group whitelisting. Will always whitelist worker security group on control plane security group either provide one or create new one. See Important notes below for upgrade notes (by @ryanooi)
2728

2829
#### Important notes

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
219219
| kubeconfig | kubectl config file contents for this EKS cluster. |
220220
| kubeconfig\_filename | The filename of the generated kubectl config. |
221221
| node\_groups\_iam\_role\_arns | IAM role ARNs for EKS node groups |
222+
| oidc\_provider\_arn | The ARN of the OIDC Provider if `enable_irsa = true`. |
222223
| worker\_autoscaling\_policy\_arn | ARN of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true` |
223224
| worker\_autoscaling\_policy\_name | Name of the worker autoscaling IAM policy if `manage_worker_autoscaling_policy = true` |
224225
| worker\_iam\_instance\_profile\_arns | default IAM instance profile ARN for EKS worker groups |

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ output "kubeconfig_filename" {
6363
value = concat(local_file.kubeconfig.*.filename, [""])[0]
6464
}
6565

66+
output "oidc_provider_arn" {
67+
description = "The ARN of the OIDC Provider if `enable_irsa = true`."
68+
value = var.enable_irsa ? aws_iam_openid_connect_provider.oidc_provider[0].arn : null
69+
}
70+
6671
output "workers_asg_arns" {
6772
description = "IDs of the autoscaling groups containing workers."
6873
value = concat(

0 commit comments

Comments
 (0)