Skip to content

Commit

Permalink
OCTOPUS-527: change to use the cos-region specified in the cos-bucket
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 Nov 2, 2023
1 parent bd50858 commit 91cd62a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/5_image/image.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ EOF
}
}

locals {
cos_region = ibm_cos_bucket.cos_bucket.region_location
}

resource "ibm_is_image" "worker_image_id" {
depends_on = [null_resource.upload_rhcos_image]
name = "${var.name_prefix}-rhcos-img"
href = "cos://${var.vpc_region}/${var.name_prefix}-mac-intel/${var.name_prefix}-rhcos.qcow2"
href = "cos://${local.cos_region}/${var.name_prefix}-mac-intel/${var.name_prefix}-rhcos.qcow2"
operating_system = "rhel-coreos-stable-amd64"
resource_group = data.ibm_resource_group.resource_group.id

Expand Down

0 comments on commit 91cd62a

Please sign in to comment.