IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

Testing confidential compute tdx #5803

Closed SunithaGudisagarIBM1 closed 22 hours ago

SunithaGudisagarIBM1 commented 2 days ago

Community Note

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...
SunithaGudisagarIBM1 commented 2 days ago
resource "ibm_is_instance" "testacc_instance" {
  name                      = "cli-instance"
  image                     = "r134-cdc7b64f-8d86-4412-ac96-7765b1e9253f"
  profile                   = "bx3dc-2x10"
  confidential_compute_mode = "tdx"
  primary_network_interface {
    subnet = "0713-55ad7df6-ccd1-4491-a116-6bcfd30aa646"
  }
  vpc  = "r134-5d5f60df-41f8-4ad9-a651-0e7be8c52f13"
  zone = "us-south-1"
  keys = ["r134-a6f4bdad-5351-4ceb-88f8-5111ccdf3764"]
  network_interfaces {
    subnet = "0713-55ad7df6-ccd1-4491-a116-6bcfd30aa646"
    name   = "eth1"
  }
}
data "ibm_is_instance" "ds_instance" {
  name = ibm_is_instance.testacc_instance.name
}

resource "ibm_is_instance_template" "instancetemplate1" {
  name                      = "instance-template"
  image                     = "r134-cdc7b64f-8d86-4412-ac96-7765b1e9253f"
  profile                   = "bx3dc-2x10"
  confidential_compute_mode = "tdx"

  primary_network_interface {
    subnet = "0713-55ad7df6-ccd1-4491-a116-6bcfd30aa646"
  }

  vpc  = "r134-5d5f60df-41f8-4ad9-a651-0e7be8c52f13"
  zone = "us-south-1"
  keys = ["r134-a6f4bdad-5351-4ceb-88f8-5111ccdf3764"]
}
SunithaGudisagarIBM1 commented 2 days ago
Screenshot 2024-11-20 at 4 43 14 PM Screenshot 2024-11-20 at 4 43 38 PM Screenshot 2024-11-20 at 4 43 54 PM