Complete Configure the Aviatrix Cloud Terraform
Provider
before following this guide.
avxcloud_cloud_account arguments, see the
provider documentation on the Terraform Registry.
Step 1: Add Variables and Define the Cloud Account
Add tovariables.tf:
terraform.tfvars:
variables.tf, the resource to
main.tf, and the values to terraform.tfvars.
- AWS
- Azure
- GCP
Add to Add to Add to
variables.tf:main.tf:terraform.tfvars:Step 2: Apply Your Configuration
To preview and apply your configuration, follow these steps:- Open a terminal window and navigate to your working directory.
-
Optionally, format and validate your configuration:
-
To initialize the Terraform configuration and download the provider from the
public registry, run the following command:
-
To preview the changes, run the following command:
-
To apply the changes, run the following command:
- After the apply completes, verify that the cloud account appears in the Aviatrix Cloud console under Cloud Resources > Cloud Accounts.
Outputs (Optional)
To print the name assigned to the cloud account after apply, add the following tooutputs.tf: