Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Latest commit

 

History

History
73 lines (47 loc) · 2 KB

README.md

File metadata and controls

73 lines (47 loc) · 2 KB

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

Terraform provider for VMware Cloud on AWS

This is the repository for the Terraform provider for VMware Cloud, which one can use with Terraform to work with VMware Cloud on AWS.

Requirements

  • Terraform 0.12+
  • Go 1.13 (to build the provider plugin)

Build the Provider

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

Using the Provider

The instructions and configuration details to run the provider can be found in examples/README.md

Testing the Provider

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"

License

Copyright 2019 VMware, Inc.

The Terraform provider for VMware Cloud on AWS is available under MPL2.0 license.