Skip to content

Commit

Permalink
fix: ensure auth policy is created before attempting to create bucket…
Browse files Browse the repository at this point in the history
… in FSCloud profile submodule (#381)
  • Loading branch information
daniel-butler-irl authored Apr 27, 2023
1 parent 3f630ba commit 1566c45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions profiles/fscloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ resource "ibm_iam_authorization_policy" "secondary_kms_policy" {
}

module "cos_primary_bucket" {
depends_on = [ibm_iam_authorization_policy.primary_kms_policy]
source = "../../"
resource_group_id = var.resource_group_id
region = var.primary_region
Expand All @@ -81,6 +82,7 @@ module "cos_primary_bucket" {
}

module "cos_secondary_bucket" {
depends_on = [ibm_iam_authorization_policy.secondary_kms_policy]
source = "../../"
resource_group_id = var.resource_group_id
region = var.secondary_region
Expand Down

0 comments on commit 1566c45

Please sign in to comment.