lab-1 Flashcards
What is the required provider for Terraform in this configuration?
The required provider is ‘aci’ from ‘CiscoDevNet/aci’ with version ‘0.7’.
What variables are used for the ACI provider configuration?
The variables used are var.USER, var.PASS, and var.aciUrl.
What resource is used to create an ACI tenant?
The resource used is ‘aci_tenant’ with the name defined by var.tenantName.
What is the purpose of the ‘aci_application_profile’ resource?
It creates an application profile within the specified tenant.
How are contracts defined in the configuration?
Contracts are defined using the ‘aci_contract’ resource with a for_each loop over var.contracts.
What resource is used to create application EPGs?
The resource used is ‘aci_application_epg’ with a for_each loop over var.epgs.
What does the ‘locals’ block define?
It defines ‘epgcontracts’, which flattens the relationships between EPGs and contracts.
What is the purpose of the ‘aci_epg_to_contract’ resource?
It creates relationships between EPGs and contracts based on the defined local variable.
What is the required provider for Terraform in this configuration?
The required provider is ‘aci’ from ‘CiscoDevNet/aci’ with version ‘0.7’.
What variables are used for the ACI provider configuration?
The variables used are var.USER, var.PASS, and var.aciUrl.
What resource is defined to create an ACI tenant?
The resource defined is ‘aci_tenant’ with the name ‘tenant1’.
What is the purpose of the ‘aci_application_profile’ resource?
It creates an application profile within the specified tenant.
How are contracts created in the ACI configuration?
Contracts are created using the ‘aci_contract’ resource with a for_each loop over var.contracts.
What does the ‘aci_application_epg’ resource do?
It creates application endpoint groups (EPGs) based on the var.epgs variable.
What is the purpose of the ‘locals’ block in this configuration?
It flattens the list of contracts associated with each EPG for easier access.
What resource links EPGs to contracts?
The resource ‘aci_epg_to_contract’ links EPGs to contracts using a for_each loop.