Skip to content

Commit

Permalink
Merge pull request #18 from ace-netops/main
Browse files Browse the repository at this point in the history
Upgrade Aviatrix provider
  • Loading branch information
hoodbu authored Jun 28, 2022
2 parents f5f1e9f + a0508dd commit 299b189
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_version = ">= 1.1.0"
backend "remote" {
hostname = "app.terraform.io"
# organization = "<replace-with-your-Terraform-Cloud-organization-and-uncomment>"
organization = "ace-netops"
workspaces {
name = "ace-iac-day-zero"
}
Expand Down
18 changes: 9 additions & 9 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aviatrix_account" "azure_account" {
# AWS Transit Modules
module "aws_transit_1" {
source = "terraform-aviatrix-modules/mc-transit/aviatrix"
version = "1.1.3"
version = "2.1.4"
cloud = "AWS"
account = var.aws_account_name
region = var.aws_transit1_region
Expand All @@ -39,48 +39,48 @@ module "aws_transit_1" {
# AWS Spoke Modules
module "aws_spoke_1" {
source = "terraform-aviatrix-modules/mc-spoke/aviatrix"
version = "1.1.2"
version = "1.2.3"
cloud = "AWS"
account = var.aws_account_name
region = var.aws_spoke1_region
name = var.aws_spoke1_name
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
}

module "azure_spoke_2" {
source = "terraform-aviatrix-modules/mc-spoke/aviatrix"
version = "1.1.2"
version = "1.2.3"
cloud = "Azure"
account = aviatrix_account.azure_account.account_name
region = var.azure_spoke2_region
name = var.azure_spoke2_name
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]
} */
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
aviatrix = {
source = "AviatrixSystems/aviatrix"
version = "~> 2.21.2"
version = "~> 2.22.1"
}
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 4.0"
}
azurerm = {
source = "hashicorp/azurerm"
Expand Down

0 comments on commit 299b189

Please sign in to comment.