Created
July 14, 2022 14:46
-
-
Save KyMidd/03cac65700114b2ba2f10062c0e1fa6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "tls_certificate" "aws_eks_cluster_cert" { | |
| url = aws_eks_cluster.aws_eks_cluster.identity[0].oidc[0].issuer | |
| } | |
| resource "aws_iam_openid_connect_provider" "oid_provider" { | |
| client_id_list = ["sts.amazonaws.com"] | |
| thumbprint_list = [data.tls_certificate.aws_eks_cluster_cert.certificates[0].sha1_fingerprint] | |
| url = aws_eks_cluster.aws_eks_cluster.identity[0].oidc[0].issuer | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment