Skip to content

Commit

Permalink
v1.0.1: add default route table (main)
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 4, 2021
1 parent 6b58684 commit d9545ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ No modules.

| Name | Type |
|------|------|
| [aws_default_route_table.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_route_table) | resource |
| [aws_vpc.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc) | resource |
| [aws_vpc_dhcp_options.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_dhcp_options) | resource |
| [aws_vpc_dhcp_options_association.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_dhcp_options_association) | resource |
Expand Down
12 changes: 12 additions & 0 deletions vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,15 @@ resource "aws_vpc" "vpc" {
)
}

#---
# bring in new default route table (do not delete) as main. Do not use.
#---
resource "aws_default_route_table" "vpc" {
default_route_table_id = aws_vpc.vpc.main_route_table_id

tags = merge(
local.base_tags,
var.tags,
map("Name", format("default-%v%v", local._prefixes["route-table"], var.vpc_full_name))
)
}

0 comments on commit d9545ec

Please sign in to comment.