This is an example on how to create a compute placement zone within a region of an existing cloud account.
There are variables which need to be added to terraform.tfvars. The first are for connecting to the vRealize Automation (vRA) endpoint. There are names of cloud_account, region, already setup in vRA.
url
- The URL for the vRealize Automation (vRA) endpointrefresh_token
- The refresh token for the vRA accountcloud_account
- The name of the cloud account added in vRAregion
- The region within in the cloud account
To facilitate adding these variables, a sample tfvars file can be copied first:
cp terraform.tfvars.sample terraform.tfvars
To create a zone, a cloud account must be setup in vRA and the region must be identified within which the zone will be created.
Follow these examples for setting up specific cloud accounts:
- Setup cloud_account_aws
- Setup cloud_account_azure
- Setup cloud_account_gcp
- Setup cloud_account_vsphere
Once the information is added to terraform.tfvars
, the zones can be created via:
terraform init
terraform apply