Skip to content

Commit

Permalink
OCTOPUS-527: depends on relationship between upload_rhcos_image and c…
Browse files Browse the repository at this point in the history
…os_bucket was not properly set

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Oct 31, 2023
1 parent e3c8b18 commit 668f73e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/5_image/image.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ resource "ibm_resource_instance" "cos_instance" {
}

resource "ibm_cos_bucket" "cos_bucket" {
depends_on = [ibm_resource_instance.cos_instance]
bucket_name = "${var.name_prefix}-mac-intel"
resource_instance_id = ibm_resource_instance.cos_instance.id
region_location = var.vpc_region
storage_class = "standard"
}

resource "null_resource" "upload_rhcos_image" {
depends_on = [ibm_resource_instance.cos_instance]
depends_on = [ibm_cos_bucket.cos_bucket]
connection {
type = "ssh"
user = var.rhel_username
Expand Down

0 comments on commit 668f73e

Please sign in to comment.