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.:
- Login to your VMC env.
- Choose VMware Cloud on AWS
- Choose Inventory
- Choose your SDDC
- Choose developer Center
- Press on VMware Cloud on AWS
- Press on Notifications 2
- Press on NSX VMC Policy API
- Choose your SDDC one more time, in case you have more than 1 SDDC
- 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