We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ace1d83 + 226e47f commit 58ba8b1Copy full SHA for 58ba8b1
terraform/modules/aws-gha-oidc-providers/main.tf
@@ -39,14 +39,18 @@ locals {
39
40
data "aws_caller_identity" "current" {}
41
42
+data "tls_certificate" "github_actions" {
43
+ url = "https://${local.oidc_github_idp}"
44
+}
45
+
46
resource "aws_iam_openid_connect_provider" "github_actions" {
47
url = "https://${local.oidc_github_idp}"
48
49
client_id_list = [
50
local.oidc_aws_audience
51
]
52
- thumbprint_list = ["1b511abead59c6ce207077c0bf0e0043b1382612"]
53
+ thumbprint_list = [data.tls_certificate.github_actions.certificates[0].sha1_fingerprint]
54
}
55
56
resource "aws_iam_role" "github_actions_oidc" {
0 commit comments