Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VPC attachment appliance mode support #338

Merged
merged 3 commits into from
Dec 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions network/us-east-1/transit-gateway/vpc_attachments.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Network Firewall VPC attachment - Inspection subnets (private)
module "tgw_vpc_attachments_and_subnet_routes_network_firewall" {

source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.4.0"
source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.6.0"

for_each = {
for k, v in {
Expand All @@ -32,6 +32,7 @@ module "tgw_vpc_attachments_and_subnet_routes_network_firewall" {
create_transit_gateway_route_table = false
create_transit_gateway_vpc_attachment = true
create_transit_gateway_route_table_association_and_propagation = false
vpc_attachment_appliance_mode_support = "enable"

config = {
(each.key) = {
Expand All @@ -56,7 +57,7 @@ module "tgw_vpc_attachments_and_subnet_routes_network_firewall" {
# network VPC attachments (private)
module "tgw_vpc_attachments_and_subnet_routes_network" {

source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.4.0"
source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.6.0"

for_each = {
for k, v in data.terraform_remote_state.network-vpcs :
Expand All @@ -72,6 +73,7 @@ module "tgw_vpc_attachments_and_subnet_routes_network" {
create_transit_gateway_route_table = false
create_transit_gateway_vpc_attachment = true
create_transit_gateway_route_table_association_and_propagation = false
vpc_attachment_appliance_mode_support = "enable"

config = {
(each.key) = {
Expand All @@ -96,7 +98,7 @@ module "tgw_vpc_attachments_and_subnet_routes_network" {
# apps-devstg VPC attachments
module "tgw_vpc_attachments_and_subnet_routes_apps-devstg" {

source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.4.0"
source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.6.0"

for_each = {
for k, v in data.terraform_remote_state.apps-devstg-vpcs :
Expand All @@ -112,6 +114,7 @@ module "tgw_vpc_attachments_and_subnet_routes_apps-devstg" {
create_transit_gateway_route_table = false
create_transit_gateway_vpc_attachment = true
create_transit_gateway_route_table_association_and_propagation = false
vpc_attachment_appliance_mode_support = "enable"

config = {
(each.key) = {
Expand Down Expand Up @@ -140,7 +143,7 @@ module "tgw_vpc_attachments_and_subnet_routes_apps-devstg" {
# apps-prd VPC attachments
module "tgw_vpc_attachments_and_subnet_routes_apps-prd" {

source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.4.0"
source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.6.0"

for_each = {
for k, v in data.terraform_remote_state.apps-prd-vpcs :
Expand All @@ -156,6 +159,7 @@ module "tgw_vpc_attachments_and_subnet_routes_apps-prd" {
create_transit_gateway_route_table = false
create_transit_gateway_vpc_attachment = true
create_transit_gateway_route_table_association_and_propagation = false
vpc_attachment_appliance_mode_support = "enable"

config = {
(each.key) = {
Expand Down Expand Up @@ -184,7 +188,7 @@ module "tgw_vpc_attachments_and_subnet_routes_apps-prd" {
# shared VPC attachments
module "tgw_vpc_attachments_and_subnet_routes_shared" {

source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.4.0"
source = "github.com/binbashar/terraform-aws-transit-gateway?ref=0.6.0"

for_each = {
for k, v in data.terraform_remote_state.shared-vpcs :
Expand All @@ -200,6 +204,7 @@ module "tgw_vpc_attachments_and_subnet_routes_shared" {
create_transit_gateway_route_table = false
create_transit_gateway_vpc_attachment = true
create_transit_gateway_route_table_association_and_propagation = false
vpc_attachment_appliance_mode_support = "enable"

config = {
(each.key) = {
Expand Down