File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 33module "oidc_provider" {
44 source = " philips-labs/github-oidc/aws//modules/provider"
55 version = " 0.8.1"
6+
7+ count = var. openid_connect_provider_arn == null ? 1 : 0
68}
79
810module "repo_oidc_label" {
@@ -22,7 +24,7 @@ module "repo_oidc" {
2224
2325 for_each = var. github_repositories
2426
25- openid_connect_provider_arn = module. oidc_provider . openid_connect_provider . arn
27+ openid_connect_provider_arn = coalesce (var . openid_connect_provider_arn , join ( " " , module. oidc_provider . * . openid_connect_provider . arn ))
2628 repo = each. key
2729 role_name = module. repo_oidc_label [each . key ]. id
2830
Original file line number Diff line number Diff line change 11
2+ variable "openid_connect_provider_arn" {
3+ description = " Set the openid connect provider ARN when the provider is not managed by the module."
4+ type = string
5+ default = null
6+ }
7+
8+
29variable "github_repositories" {
310 description = " Map of GitHub repositories to create OIDC roles for keyed by repo name"
411 type = map (object ({
You can’t perform that action at this time.
0 commit comments