Skip to content

Commit

Permalink
fix: change rhel-coreos-stable-amd64 to rhel-coreos-stable-amd64-byol
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Mar 12, 2024
1 parent 6cb9061 commit 6bf99f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/5_image/image.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ locals {

# Dev Note: The following message points to no authorization from VPC to Image.
# > The IAM token that was specified in the request has expired or is invalid. The request is not authorized to access the Cloud Object Storage resource.
# ibmcloud is image-create test --file cos://au-syd/mac-f672-mac-intel/mac-f672-rhcos.qcow2 --os-name rhel-coreos-stable-amd64
# ibmcloud is image-create test --file cos://au-syd/mac-f672-mac-intel/mac-f672-rhcos.qcow2 --os-name rhel-coreos-stable-amd64-byol
# Ref: https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4267
# Ref: https://cloud.ibm.com/iam/authorizations/grant
resource "ibm_is_image" "worker_image_id" {
depends_on = [null_resource.upload_rhcos_image, ibm_cos_bucket.cos_bucket, ibm_iam_authorization_policy.policy]
name = "${var.name_prefix}-rhcos-img"
href = "cos://${local.cos_region}/${var.name_prefix}-mac-intel/${var.name_prefix}-rhcos.qcow2"
operating_system = "rhel-coreos-stable-amd64"
operating_system = "rhel-coreos-stable-amd64-byol"
resource_group = data.ibm_resource_group.resource_group.id

//increase timeouts as this import may be cross-region
Expand Down

0 comments on commit 6bf99f3

Please sign in to comment.