Skip to content

Commit 2b88e50

Browse files
russwhelanmax-rocket-internet
authored andcommitted
Add URL for OIDC issuer to allow IAM roles for Pods (#506)
* Add URL for OIDC issuer to allow IAM roles for Pods * Update Documentation
1 parent 4f4d9c3 commit 2b88e50

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
@@ -19,6 +19,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1919
- Added support for initial lifecycle hooks for autosacling groups (@barryib)
2020
- Added option to recreate ASG when LT or LC changes (by @barryib)
2121
- Ability to specify workers role name (by @ivanich)
22+
- Added output for OIDC Issuer URL (by @russwhelan)
2223
- Added support for Mixed Instance ASG using `worker_groups_launch_template` variable (by @sppwf)
2324
- Changed ASG Tags generation using terraform 12 `for` utility (by @sppwf)
2425
- Removed `worker_groups_launch_template_mixed` variable (by @sppwf)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
168168
| cluster\_id | The name/id of the EKS cluster. |
169169
| cluster\_security\_group\_id | Security group ID attached to the EKS cluster. |
170170
| cluster\_version | The Kubernetes server version for the EKS cluster. |
171+
| cluster\_oidc\_issuer\_url | The URL on the EKS cluster OIDC Issuer. |
171172
| config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. |
172173
| kubeconfig | kubectl config file contents for this EKS cluster. |
173174
| kubeconfig\_filename | The filename of the generated kubectl config. |

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ output "cluster_iam_role_arn" {
4343
value = local.cluster_iam_role_arn
4444
}
4545

46+
output "cluster_oidc_issuer_url" {
47+
description = "The URL on the EKS cluster OIDC Issuer"
48+
value = aws_eks_cluster.this.identity.0.oidc.0.issuer
49+
}
50+
4651
output "cloudwatch_log_group_name" {
4752
description = "Name of cloudwatch log group created"
4853
value = aws_cloudwatch_log_group.this.*.name

0 commit comments

Comments
 (0)