Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
ace-netops authored Jun 14, 2022
1 parent 2a8dd98 commit bbf47c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module "aws_spoke_1" {
cidr = var.aws_spoke1_cidr
instance_size = var.aws_spoke_instance_size
ha_gw = var.ha_enabled
security_domain = aviatrix_segmentation_security_domain.BU1.domain_name
network_domain = aviatrix_segmentation_network_domain.BU1.domain_name
transit_gw = module.aws_transit_1.transit_gateway.gw_name
}

Expand All @@ -61,26 +61,26 @@ module "azure_spoke_2" {
cidr = var.azure_spoke2_cidr
instance_size = var.azure_spoke_instance_size
ha_gw = var.ha_enabled
security_domain = aviatrix_segmentation_security_domain.BU2.domain_name
network_domain = aviatrix_segmentation_network_domain.BU2.domain_name
transit_gw = module.aws_transit_1.transit_gateway.gw_name
}

# Multi-Cloud Segmentation
resource "aviatrix_segmentation_security_domain" "BU1" {
resource "aviatrix_segmentation_network_domain" "BU1" {
domain_name = "BU1"
depends_on = [
module.aws_transit_1
]
}
resource "aviatrix_segmentation_security_domain" "BU2" {
resource "aviatrix_segmentation_network_domain" "BU2" {
domain_name = "BU2"
depends_on = [
module.aws_transit_1
]
}

/* resource "aviatrix_segmentation_security_domain_connection_policy" "BU1_BU2" {
/* resource "aviatrix_segmentation_network_domain_connection_policy" "BU1_BU2" {
domain_name_1 = "BU1"
domain_name_2 = "BU2"
depends_on = [aviatrix_segmentation_security_domain.BU1, aviatrix_segmentation_security_domain.BU2]
depends_on = [aviatrix_segmentation_network_domain.BU1, aviatrix_segmentation_network_domain.BU2]
} */

0 comments on commit bbf47c3

Please sign in to comment.