Skip to content

Commit

Permalink
OCTOPUS-583: add dependency for iam policy creation
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed May 8, 2024
1 parent 04b6a77 commit 04c890c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/5_image/image.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 04c890c

Please sign in to comment.