Skip to content

Commit

Permalink
update data for route_tables
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 31, 2021
1 parent 694e0b8 commit 1318cb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion peer/data.peer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ data "aws_vpc" "peer_vpc" {
id = var.peer_vpc_id
}

# defaults to all private and services vpc
# if this doesn't exist, may need to make this use a count parameter
data "aws_route_tables" "default_peer_route_tables" {
provider = aws.peer
vpc_id = var.peer_vpc_id
filter {
name = "tag:Name"
values = ["*-private-*"]
values = ["*-private-*", "route-*-services"]
}
}
2 changes: 2 additions & 0 deletions peer/data.self.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ data "aws_vpc" "self_vpc" {
id = var.vpc_id
}

# defaults to all private and services vpc
# if this doesn't exist, may need to make this use a count parameter
data "aws_route_tables" "default_self_route_tables" {
provider = aws.self
vpc_id = var.vpc_id
Expand Down

0 comments on commit 1318cb8

Please sign in to comment.