Skip to content

Commit

Permalink
fix: only create the secrets manager auth policy if user passes a val…
Browse files Browse the repository at this point in the history
…ue for `existing_secrets_manager_instance_crn` regardless of the value of `skip_cos_sm_auth_policy` (#709)
  • Loading branch information
Soaib024 authored Aug 27, 2024
1 parent 3a1b37a commit c11b537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module "cos" {
}

resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" {
count = var.skip_cos_sm_auth_policy ? 0 : 1
count = var.skip_cos_sm_auth_policy || var.existing_secrets_manager_instance_crn == null ? 0 : 1
depends_on = [module.cos]
source_service_name = "secrets-manager"
source_resource_instance_id = local.existing_secrets_manager_instance_guid
Expand Down

0 comments on commit c11b537

Please sign in to comment.