Skip to content

Instantly share code, notes, and snippets.

@lamw
Created June 23, 2020 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamw/a9ab09834a806505fd02415ed2b85131 to your computer and use it in GitHub Desktop.
Save lamw/a9ab09834a806505fd02415ed2b85131 to your computer and use it in GitHub Desktop.
VMC Terraform Provider for deploying 1 & 2 Node SDDC
# 1-Node SDDC
provider "vmc" {
refresh_token = var.refresh_token
org_id = var.org_id
}
resource "vmc_sddc" "sddc_1" {
sddc_name = "1-Node-SDDC"
num_host = 1
deployment_type = "SingleAZ"
sddc_type = "1NODE1"
provider_type = "AWS"
host_instance_type = "I3_METAL"
region = "US_WEST_2"
vpc_cidr = "10.5.0.0/16"
}
# 2-Node SDDC
provider "vmc" {
refresh_token = var.refresh_token
org_id = var.org_id
}
resource "vmc_sddc" "sddc_1" {
sddc_name = "2-Node-SDDC"
num_host = 2
deployment_type = "SingleAZ"
provider_type = "AWS"
host_instance_type = "I3_METAL"
region = "US_WEST_2"
vpc_cidr = "10.5.0.0/16"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment