Skip to content

Commit

Permalink
Merge pull request #1 from devopswithzack/dev
Browse files Browse the repository at this point in the history
- add name tags to tgw attachments
  • Loading branch information
awsfanboy authored Feb 26, 2023
2 parents 9029784 + 3e87f82 commit 7d92eb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aws-network-firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "aws_networkfirewall_rule_group" "default_rule_group" {
stateless_rule {
priority = 10
rule_definition {
actions = ["aws:pass"]
actions = ["aws:forward_to_sfe"]
match_attributes {
source {
address_definition = var.egress_vpc_cidr
Expand Down
9 changes: 9 additions & 0 deletions tgw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "inspection_vpc" {
transit_gateway_default_route_table_propagation = false
transit_gateway_id = aws_ec2_transit_gateway.tgw.id
vpc_id = module.inspection_vpc.vpc_id
tags = {
Name = "inspection_vpc"
}
}

#TGW App VPC attachment
Expand All @@ -31,6 +34,9 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "app_vpc" {
transit_gateway_default_route_table_propagation = false
transit_gateway_id = aws_ec2_transit_gateway.tgw.id
vpc_id = module.app_vpc.vpc_id
tags = {
Name = "app_vpc"
}
}

#TGW Egress VPC attachment
Expand All @@ -43,6 +49,9 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "egress_vpc" {
transit_gateway_default_route_table_propagation = false
transit_gateway_id = aws_ec2_transit_gateway.tgw.id
vpc_id = module.egress_vpc.vpc_id
tags = {
Name = "egress_vpc"
}
}

#TGW Route Tables
Expand Down

0 comments on commit 7d92eb1

Please sign in to comment.