Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/netascode/brkdcn-2673-demo

Cisco Live US 2024 BRKDCN-2673 Demo
https://github.com/netascode/brkdcn-2673-demo

brkdcn ciscolive demo iac nac nexus-as-code terraform

Last synced: 3 days ago
JSON representation

Cisco Live US 2024 BRKDCN-2673 Demo

Awesome Lists containing this project

README

        

# Cisco Live US 2024 BRKDCN-2673 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 = "CiscoLive"

workspaces {
name = "BRKDCN-2673-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
```