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

We need the flexibility with landing-zone-vsi module to provision an instance in a dedicated host that belongs to the provided dedicated host group #747

Open
nupurg-ibm opened this issue Nov 11, 2024 · 0 comments
Labels
enhancement New feature or request internal-synced

Comments

@nupurg-ibm
Copy link

Description

If I create the dedicated host by our code, I need to pass the value of dedicated host for the VSI's to join.. I see that the landing zone VSI will not support the attribute to join to the dedicated host -> https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi/blob/main/main.tf

We need the flexibility with landing-zone-vsi module to provision an instance in a dedicated host that belongs to the provided dedicated host group

Like : https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_instance

resource "ibm_is_instance" "example1" {
  name    = "example-instance-1"
  image   = ibm_is_image.example.id
  profile = "cx2-2x4"

  primary_network_interface {
    subnet          = ibm_is_subnet.example.id
    security_groups = [ibm_is_security_group.example.id]
  }
  dedicated_host = ibm_is_dedicated_host.example.id
  vpc            = ibm_is_vpc.example.id
  zone           = "us-south-1"
  keys           = [ibm_is_ssh_key.example.id]
  depends_on     = [ibm_is_security_group_rule.example3]

As you know if the value is not supported we see the below issue:

 Error: Unsupported argument
│ 
│   on ../../modules/landing_zone_vsi/main.tf line 79, in module "management_vsi":
│   79:   dedicated_host                = var.boot_volume_encryption_key
│ 
│ An argument named "dedicated_host" is not expected here.
╵
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal-synced
Projects
None yet
Development

No branches or pull requests

2 participants