Skip to content

A simple terraform script to deploy a Software Defined Data Center to VMware Cloud on AWS

Notifications You must be signed in to change notification settings

mestredelpino/vmc-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMWare Cloud SDDC deployment with Terraform

Setting up the environment

  1. Install Terraform
  2. Install AWS CLI and add it to path

Setting up the credentials

  1. Extract your AWS credentials:

    1. Select the Command line or programmatic access option

      alt text

    2. Copy the credentials from macOS or linux / windows / powershell for further use

      alt text
  2. Generate a VMware Cloud token (with NSX Cloud admin & administrator rights)

1. Deploying an SDDC in VMWare Cloud on AWS

alt text

  1. Create a file called phase1/terraform.tfvars, and insert the following:
aws_account_number        = "" # Your AWS billing account number
sddc_a_connected_vpc_cidr = "" # The CIDR of the AWS VPC that will be created
vmc_refresh_token         = "" # The VMC access token that you recently created (and gave NSX-T admin rights)
Org                       = "" # Your AWS organization name
sddc_a_name               = "" # The name of the SDDC that will get deployed
vmc_org_id                = "" # Your VMC organization ID
sddc_a_region             = "" # The AWS region in which the VPC will be created
  1. Open a powershell console
  2. Paste the AWS credentials you coppied
  3. Navigate to the "phase1" directory
  4. Execute terraform init
  5. Execute terraform apply

2. Creating NSX-T rules

In the following phase, diverse NSX-T rules will be created

  1. Create a file called phase2/terraform.tfvars, and insert the following:
workstation_public_ip = "" # Your workstation's public IP address (To provide access to vSphere)
  1. Navigate to the "SDDC-Deployment/phase2" directory
  2. Execute terraform init
  3. Execute terraform apply

And that is it! Your SDDC in VMware Cloud on AWS got deployed!

About

A simple terraform script to deploy a Software Defined Data Center to VMware Cloud on AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages