Skip to main content
Onboarding a cloud account is the first step in Aviatrix Cloud. It connects your existing AWS, Azure, or GCP account to your Fabric and is required before you can manage networks.
Complete Configure the Aviatrix Cloud Terraform Provider before following this guide.
For all avxcloud_cloud_account arguments, see the provider documentation on the Terraform Registry.

Step 1: Add Variables and Define the Cloud Account

Add to variables.tf:
Add to terraform.tfvars:
Select your cloud provider. Add its variables to variables.tf, the resource to main.tf, and the values to terraform.tfvars.
Add to variables.tf:
Add to main.tf:
Add to terraform.tfvars:

Step 2: Apply Your Configuration

To preview and apply your configuration, follow these steps:
  1. Open a terminal window and navigate to your working directory.
  2. Optionally, format and validate your configuration:
  3. To initialize the Terraform configuration and download the provider from the public registry, run the following command:
  4. To preview the changes, run the following command:
  5. To apply the changes, run the following command:
  6. 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 to outputs.tf:

Troubleshooting