Skip to content

Commit ae19347

Browse files
committed
fix: OIDC condition no longer relies on value that may not be available at runtime.
1 parent 304d089 commit ae19347

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

data.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ data "aws_route53_zone" "domain" {
1111
}
1212

1313
data "aws_secretsmanager_secret_version" "oidc" {
14-
for_each = nonsensitive(try(var.oidc_settings.client_secret_arn, null)) != null ? toset(["this"]) : toset([])
14+
for_each = (
15+
var.oidc_settings != null &&
16+
nonsensitive(try(var.oidc_settings.client_id, null)) == null
17+
) ? toset(["this"]) : toset([])
1518

1619
secret_id = var.oidc_settings.client_secret_arn
1720
}

0 commit comments

Comments
 (0)