Install Terraform, and the following two Python tools:
pip install -r requirements.txt
Set environment variables pointing to APIC:
export ACI_USERNAME=admin
export ACI_PASSWORD=Cisco123
export ACI_URL=https://10.1.1.1
Update the cloud
block within the terraform
configuration in main.tf
to point to your Terraform Cloud Organization and Workspace:
terraform {
cloud {
organization = "CiscoLive"
workspaces {
name = "BRKDCN-2673-Demo"
}
}
}
Or remove the cloud
block completely to revert to local state storage.
terraform init
iac-validate ./data/
terraform apply
iac-test --data ./data --data ./defaults.yaml --templates ./tests/templates --output ./tests/results/aci