Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.07 KB

File metadata and controls

60 lines (42 loc) · 1.07 KB

Cisco Live Amsterdam 2023 DEVNET-2097 Demo

Setup

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 = "CLAMS23"

    workspaces {
      name = "DEVNET-2097-DEMO"
    }
  }
}

Or remove the cloud block completely to revert to local state storage.

Initialization

terraform init

Pre-Change Validation

iac-validate ./data/

Terraform Plan/Apply

terraform apply

Testing

iac-test --data ./data --data ./defaults.yaml --templates ./tests/templates --output ./tests/results/aci