Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_is_instance: boot volume encryption not working with catalog images #4938

Closed
ujjwal-ibm opened this issue Nov 21, 2023 · 0 comments · Fixed by #4940
Closed

ibm_is_instance: boot volume encryption not working with catalog images #4938

ujjwal-ibm opened this issue Nov 21, 2023 · 0 comments · Fixed by #4940
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@ujjwal-ibm
Copy link
Collaborator

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_is_instance

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_is_instance" "testacc_instance" {
	name   				= "${var.name}-vsi"
	profile 			= "bx2-2x8"

	catalog_offering {
    	version_crn = data.ibm_is_images.example.images.0.catalog_offering.0.version.0.crn
  	}
	boot_volume {
		encryption = ibm_kms_key.test.crn
	}
	  primary_network_interface {
    subnet = ibm_is_subnet.testacc_subnet.id
  }
   
  
	vpc     = ibm_is_vpc.testacc_vpc.id
	zone    = ibm_is_subnet.testacc_subnet.zone
	keys    = [ibm_is_ssh_key.testacc_sshkey.id]


}

Debug Output

Panic Output

│ Error: Missing required argument
│ 
│   with ibm_is_instance.testacc_instance,
│   on main.tf line 270, in resource "ibm_is_instance" "testacc_instance":
│  270: 	boot_volume {
│ 
│ "boot_volume.0.volume_id": one of `boot_volume.0.snapshot,boot_volume.0.volume_id,image,instance_template` must be specified

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant