https://github.com/netascode/devnet-2097-demo
Cisco Live Amsterdam 2023 DEVNET-2097 Demo
https://github.com/netascode/devnet-2097-demo
cisco cisco-live devnet iac terraform
Last synced: 4 months ago
JSON representation
Cisco Live Amsterdam 2023 DEVNET-2097 Demo
- Host: GitHub
- URL: https://github.com/netascode/devnet-2097-demo
- Owner: netascode
- Created: 2022-06-12T23:24:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-21T09:59:24.000Z (over 1 year ago)
- Last Synced: 2024-11-14T19:42:01.193Z (6 months ago)
- Topics: cisco, cisco-live, devnet, iac, terraform
- Language: Python
- Homepage: https://github.com/netascode/DEVNET-2097-Demo
- Size: 157 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cisco Live Amsterdam 2023 DEVNET-2097 Demo
## Setup
Install [Terraform](https://www.terraform.io/downloads), and the following two Python tools:
- [iac-validate](https://github.com/netascode/iac-validate)
- [iac-test](https://github.com/netascode/iac-test)```shell
pip install -r requirements.txt
```Set environment variables pointing to APIC:
```shell
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
terraform {
cloud {
organization = "CLAMS23"workspaces {
name = "DEVNET-2097-DEMO"
}
}
}
```Or remove the `cloud` block completely to revert to local state storage.
## Initialization
```shell
terraform init
```## Pre-Change Validation
```shell
iac-validate ./data/
```## Terraform Plan/Apply
```shell
terraform apply
```## Testing
```shell
iac-test --data ./data --data ./defaults.yaml --templates ./tests/templates --output ./tests/results/aci
```