Skip to content

Commit

Permalink
fix: only use OIDC provider ARN when OIDC provider is created (#40)
Browse files Browse the repository at this point in the history
This fixes #39.
  • Loading branch information
morremeyer authored Oct 29, 2023
1 parent 6f064b0 commit b570d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ output "iam_role_name" {
output "oidc_provider_arn" {
depends_on = [aws_iam_openid_connect_provider.github]
description = "ARN of the OIDC provider."
value = var.enabled ? aws_iam_openid_connect_provider.github[0].arn : ""
value = var.enabled && var.create_oidc_provider ? aws_iam_openid_connect_provider.github[0].arn : ""
}

0 comments on commit b570d79

Please sign in to comment.