Skip to content

Commit 756b55c

Browse files
committed
fix the oicd provider and github repo name
1 parent 0569bbd commit 756b55c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github_action.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "lamda_gha" {
1111

1212
count = var.create_github_actions_role ? 1 : 0
1313

14-
openid_connect_provider_arn = var.create_github_actions_oidc_provider ? module.oidc_provider.openid_connect_provider.arn : data.aws_iam_openid_connect_provider.github.arn
14+
openid_connect_provider_arn = var.create_github_actions_oidc_provider ? module.oidc_provider[0].openid_connect_provider.arn : data.aws_iam_openid_connect_provider.github.arn
1515
repo = var.github_repo.repo
1616
role_name = var.github_repo.role_name
1717
github_environments = var.github_repo.environments
@@ -22,7 +22,7 @@ module "lamda_gha" {
2222
{
2323
test = "StringLike"
2424
variable = "token.actions.githubusercontent.com:sub"
25-
values = [for branch in var.github_repo.branches : "repo:${each.value.repo}:ref:refs/heads/${branch}"]
25+
values = [for branch in var.github_repo.branches : "repo:${var.github_repo.repo}:ref:refs/heads/${branch}"]
2626
},
2727
] : []
2828
}

0 commit comments

Comments
 (0)