provider/aws: fixing tests

This commit is contained in:
Armon Dadgar 2014-07-28 13:27:55 -04:00
parent 7b85fde0e4
commit be1ae66d86
1 changed files with 16 additions and 0 deletions

View File

@ -111,8 +111,16 @@ resource "aws_subnet" "foo" {
cidr_block = "10.1.1.0/24"
}
resource "aws_internet_gateway" "foo" {
vpc_id = "${aws_vpc.foo.id}"
}
resource "aws_route_table" "foo" {
vpc_id = "${aws_vpc.foo.id}"
route {
cidr_block = "10.0.0.0/8"
gateway_id = "${aws_internet_gateway.foo.id}"
}
}
resource "aws_route_table_association" "foo" {
@ -131,8 +139,16 @@ resource "aws_subnet" "foo" {
cidr_block = "10.1.1.0/24"
}
resource "aws_internet_gateway" "foo" {
vpc_id = "${aws_vpc.foo.id}"
}
resource "aws_route_table" "bar" {
vpc_id = "${aws_vpc.foo.id}"
route {
cidr_block = "10.0.0.0/8"
gateway_id = "${aws_internet_gateway.foo.id}"
}
}
resource "aws_route_table_association" "foo" {