Skip to content

Commit 78f0620

Browse files
fix:Prevents time_sleep resource creation when SM CRN is passed as input variable (#228)
1 parent ee5d8e8 commit 78f0620

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
7373

7474
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
7575
resource "time_sleep" "wait_for_authorization_policy" {
76+
count = var.existing_sm_instance_crn == null ? 1 : 0
7677
depends_on = [ibm_iam_authorization_policy.kms_policy, ibm_iam_authorization_policy.en_policy]
7778

7879
create_duration = "30s"

0 commit comments

Comments
 (0)