This project has moved to the terraform-providers organization and is archived.
The new location is here: https://github.com/terraform-providers/terraform-provider-vmc
This is the repository for the Terraform provider for VMware Cloud, which one can use with Terraform to work with VMware Cloud on AWS.
The instructions outlined below to build the provider are specific to Mac OS or Linux OS only.
Clone repository to: $GOPATH/src/github.com/provider/
mkdir -p $GOPATH/src/github.com/provider/
cd $GOPATH/src/github.com/provider/
git clone https://github.com/vmware/terraform-provider-vmc.git
Enter the provider directory and build the provider
cd $GOPATH/src/github.com/provider/terraform-provider-vmc
go get
go build -o terraform-provider-vmc
The instructions and configuration details to run the provider can be found in examples/README.md
Set required environment variables based as per your infrastructure settings
$ export API_TOKEN=xxx
$ export ORG_ID=xxxx
$ export TEST_SDDC_ID=xxx
In order to run the full suite of Acceptance tests, run make testacc
.
Note: Acceptance tests create real resources, and often cost money to run.
$ make testacc
If you want to run against a specific set of tests, run make testacc with the TESTARGS parameter containing the run mask as per below:
$ make testacc TESTARGS="-run=TestAccResourceVmcSddc_basic"
Copyright 2019 VMware, Inc.
The Terraform provider for VMware Cloud on AWS is available under MPL2.0 license.