-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication_profile.tf
More file actions
44 lines (35 loc) · 1.22 KB
/
application_profile.tf
File metadata and controls
44 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
resource "aci_application_profile" "test-app" {
tenant_dn = aci_tenant.tenant.id
name = "test-app"
description = "This app profile is created by terraform"
}
resource "aci_application_epg" "WEB_EPG" {
application_profile_dn = aci_application_profile.test-app.id
name = "WEB_EPG"
relation_fv_rs_bd = aci_bridge_domain.web_bd.id
}
resource "aci_application_epg" "APP_EPG" {
application_profile_dn = aci_application_profile.test-app.id
name = "APP_EPG"
relation_fv_rs_bd = aci_bridge_domain.app_bd.id
}
resource "aci_epg_to_static_path" "WEB_EPG" {
application_epg_dn = "${aci_application_epg.WEB_EPG.id}"
tdn = local.tdn_1
encap = local.vlan_1
mode = "regular"
}
resource "aci_epg_to_static_path" "APP_EPG" {
application_epg_dn = "${aci_application_epg.APP_EPG.id}"
tdn = local.tdn_2
encap = local.vlan_2
mode = "regular"
}
resource "aci_epg_to_domain" "WEB_EPG" {
application_epg_dn = "${aci_application_epg.WEB_EPG.id}"
tdn = "${aci_physical_domain.terraform_physdom_2.id}"
}
resource "aci_epg_to_domain" "APP_EPG" {
application_epg_dn = "${aci_application_epg.APP_EPG.id}"
tdn = "${aci_physical_domain.terraform_physdom_2.id}"
}