Skip to content

Commit 74de1dd

Browse files
authored
Merge pull request #10 from jannekeskitalo/fix_conditional_type_error
Changed local.oidc_provider to local.oidc_provider_arn
2 parents db9565c + ddaa1ce commit 74de1dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data "aws_iam_policy_document" "assume_role" {
2828
}
2929

3030
principals {
31-
identifiers = [local.oidc_provider.arn]
31+
identifiers = [local.oidc_provider_arn]
3232
type = "Federated"
3333
}
3434
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

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

0 commit comments

Comments
 (0)