diff --git a/outputs.tf b/outputs.tf index 1b51818..acff5a3 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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 : "" }