This is an example that demonstrates cluster management actions like creating, updating, and deleting a cluster for an SDDC.
To run the example:
-
Generate an API token using VMware Cloud on AWS console.
-
Update the required parameters
api_token
andorg_id
in thevariables.tf
with your infrastructure settings. -
Load the provider:
terraform init
-
Run the plan:
terraform apply
or
terraform apply -var="api_token=xxxx" -var="org_id=xxxx"
Verify cluster has been created successfully.
-
Check the state:
terraform show
-
Delete the cluster
terraform destroy
or
terraform destroy -var="api_token=xxxx" -var="org_id=xxxx"