Skip to content

gchek/VMworld2020

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
p1
 
 
p2
 
 
p3
 
 
 
 

Terraform multi-phase / multi-providers

Make sure your AWS account is linked to your ORG

  • run VMC Cloud Formation template if not

Variables

Some variables need to be defined before we start.

Set the proper credentials in deploy-lab.sh

deploy-lab.sh
  • Org ID

    • long format like 2a8ac0ba-c93d-xxxx-xxxx-7dc9918beaa5
  • API Token

    • Your API Token
  • AWS Account

    • SET EMEA Account: 6140xxxxxxxx
  • AWS Access Key

  • AWS Secret Key

1 - Terraform Phase 1 (AWS)

p1/main/variables.tf
  • variable "AWS_region" {default = "us-west-2"}

AWS public keys:

We are deploying an EC2 as our Terraform host for Phase3 - make sure the AWS public key has 400 permissions and it's coming from the SAME account you deployed the AWS infrastructure.

2 - Terraform Phase 2 (NSXT)

p2/main/variables.tf

Deploy lab

source deploy-lab.sh

1 - (p1) SDDC deployment

  • outputs are printed

pause (press Enter or ^c)

2 - (p2) NSXT

  • FW rules

pause (press Enter or ^c)

3- Copy files to EC2

About

VMworld 2020 Terraform session code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published