feat: Add additional output for OIDC provider (issuer URL without leading https://) (#1870)

This commit is contained in:
Bryant Biggs
2022-02-11 16:26:36 -05:00
committed by GitHub
parent 6a30b73fe4
commit d3b68479de
13 changed files with 37 additions and 1 deletions

View File

@@ -74,6 +74,11 @@ output "node_security_group_id" {
# IRSA
################################################################################
output "oidc_provider" {
description = "The OpenID Connect identity provider (issuer URL without leading `https://`)"
value = try(replace(aws_eks_cluster.this[0].identity[0].oidc[0].issuer, "https://", ""), "")
}
output "oidc_provider_arn" {
description = "The ARN of the OIDC Provider if `enable_irsa = true`"
value = try(aws_iam_openid_connect_provider.oidc_provider[0].arn, "")