Skip to content

Commit

Permalink
Add appliance mode flag for attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
as-extern-mbertram committed Oct 9, 2024
1 parent 60c3125 commit c73f062
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .spacelift/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1


module_version: 0.3.5
module_version: 0.3.6
7 changes: 4 additions & 3 deletions tgw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ resource "aws_network_acl_rule" "tgw_outbound" {
resource "aws_ec2_transit_gateway_vpc_attachment" "tgw" {
count = var.enable_tgw_attachment ? 1 : 0

subnet_ids = aws_subnet.tgw[*].id
transit_gateway_id = var.transit_gateway_id
vpc_id = local.vpc_id
subnet_ids = aws_subnet.tgw[*].id
transit_gateway_id = var.transit_gateway_id
vpc_id = local.vpc_id
appliance_mode_support = var.enable_appliance_mode_support

tags = merge(
{ Name = "${var.name_prefix}-${var.short_aws_region}-tgw-att-${var.tgw_att_suffix}" }
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,12 @@ variable "create_multiple_tgw_route_tables" {
default = true
}

variable "enable_appliance_mode_support" {
description = "Enable/disable support for appliance mode for the TGW attachment. Default:; `false`"
type = bool
default = false
}

################################################################################
# TGW Network ACLs
################################################################################
Expand Down

0 comments on commit c73f062

Please sign in to comment.