Terraform Cloud ACI Tenant Module
Create and ACI Tenant for Cloud APIC in AWS User Account. When creating a new Tenant in Cisco Cloud APIC for AWS two items are required.
- The Tenant Name
- The AWS Account ID to associate the Tenant with.
When executing using Terraform this requires 2 resources to be defined to simplify further this simple module takes in the required variables and creates the new tenant.
Using this module one could manage multiple tenants as part of a terraform plan.
Cloud APIC Tenant Creation workflow (manual)
Accessed in GUI Application Management > Tenants > Actions >> Create Tenant
Example AWS Tenant Creation
Using the module creates the tenant with the supplied name and Account ID. The output provides the DN of the created tenant for use in additional modules or resources.
Acknowledgements
Would like to acknowledge Marina Ferreira's repo marinalf/cloudaci-demo-terraform-aws. The work from this repo provides additional information on deploying components in Cloud ACI.
Requirements
Providers
Inputs
Name |
Description |
Type |
Default |
Required |
tenant_name |
Name of managed tenant. |
string |
n/a |
yes |
tenant_description |
Optional description for managed tenant. |
string |
null |
no |
aws_account |
AWS Account ID to associate tenant with and trusted state (yes/no), see Cisco Cloud APIC User Guide for more details |
object({ id = string is_trusted = string }) |
n/a |
yes |
Outputs
Name |
Description |
aci_tenant_dn |
Outputs the newly created Tenant ID for consumption in subsequent modules or resources |
Resources