From 04c890cd54088893031d150a7eee8d9596645a18 Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Wed, 8 May 2024 13:00:04 -0400 Subject: [PATCH] OCTOPUS-583: add dependency for iam policy creation Signed-off-by: Paul Bastide --- modules/5_image/image.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/5_image/image.tf b/modules/5_image/image.tf index 868a031..ef70158 100644 --- a/modules/5_image/image.tf +++ b/modules/5_image/image.tf @@ -73,7 +73,7 @@ EOF # Dev Note: required however, it may require superadmin privileges to set. # Ref: https://github.com/openshift/installer/blob/master/data/data/ibmcloud/network/image/main.tf#L19 resource "ibm_iam_authorization_policy" "policy" { - depends_on = [ibm_resource_instance.cos_instance] + depends_on = [ibm_resource_instance.cos_instance, null_resource.upload_rhcos_image] count = var.skip_authorization_policy_create ? 0 : 1 source_service_name = "is" source_resource_type = "image"