From 668f73e2ac77881133a30757e42b4f01e4342871 Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Tue, 31 Oct 2023 09:24:41 -0400 Subject: [PATCH] OCTOPUS-527: depends on relationship between upload_rhcos_image and cos_bucket was not properly set Signed-off-by: Paul Bastide --- modules/5_image/image.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/5_image/image.tf b/modules/5_image/image.tf index c86c8e2..36c6251 100644 --- a/modules/5_image/image.tf +++ b/modules/5_image/image.tf @@ -20,6 +20,7 @@ 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 @@ -27,7 +28,7 @@ resource "ibm_cos_bucket" "cos_bucket" { } 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