Monday, March 14, 2022

Using Terraform on NSX-T on VMC/AWS - Part 1

 How to use Terraform on NSX-T on VMC/AWS ?


The first step is to collect the needed information like your NSX-T host on your VMC environment.

The second step is to create access token for your account to be able to connect to the NSX-T.


1. How to get your NSX-T host on your VMC env.:

  1.  Login to your VMC env.
  2.  Choose VMware Cloud on AWS
  3.  Choose Inventory
  4.  Choose your SDDC 
  5.  Choose developer Center
  6.  Press on VMware Cloud on AWS
  7.  Press on Notifications 2
  8.  Press on NSX VMC Policy API
  9.  Choose your SDDC one more time, in case you have more than 1 SDDC
  10.  Copy your NSX-T host proxy from the service information part 

 it should be something like that

https://nsx-1-38-60-79.rp.vmwarevmc.com/vmc/reverse-proxy/api/orgs/53045f5a-59f7-4921-8bcb-0b09e8c3ac16/sddcs/24163dc6-2b22-475b-b197-167932ef5124





you will need to add at the end of the URL of your host /sks-nsxt-manager


so in Terraform your host will be like that 

host = "https://nsx-1-38-60-79.rp.vmwarevmc.com/vmc/reverse-proxy/api/orgs/53045f5a-59f7-4921-8bcb-0b09e8c3ac16/sddcs/24163dc6-2b22-475b-b197-167932ef5124/sks-nsxt-manager"

in the second article I will show you can create access token for yourself to be able to authenticate with it and to create some resources with Terraform

No comments:

Post a Comment

NSX-T (local log in) with VIDM integration

We will explain how to log in with a local account to your NSX-T which integrated with VIDM. We integrated our NSX-T into the VIDM. We had a...