Skip to content

Commit

Permalink
Changed local.oidc_provider local.oidc_provider_arn
Browse files Browse the repository at this point in the history
  • Loading branch information
Janne Keskitalo committed Apr 27, 2022
1 parent db9565c commit ddaa1ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data "aws_iam_policy_document" "assume_role" {
}

principals {
identifiers = [local.oidc_provider.arn]
identifiers = [local.oidc_provider_arn]
type = "Federated"
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

locals {
github_organizations = [for repo in var.github_repositories : split("/", repo)[0]]
oidc_provider = var.create_oidc_provider ? aws_iam_openid_connect_provider.github[0] : data.aws_iam_openid_connect_provider.github[0]
oidc_provider_arn = var.create_oidc_provider ? aws_iam_openid_connect_provider.github[0].arn : data.aws_iam_openid_connect_provider.github[0].arn
partition = data.aws_partition.current.partition
}

Expand Down

0 comments on commit ddaa1ce

Please sign in to comment.