Commit 5b87ef41 authored by Stefan Mihajlovic's avatar Stefan Mihajlovic Committed by Anton Babenko

Added longer timeouts for aws_route create (#113)

parent 323a995a
...@@ -74,6 +74,11 @@ resource "aws_route" "public_internet_gateway" { ...@@ -74,6 +74,11 @@ resource "aws_route" "public_internet_gateway" {
route_table_id = "${aws_route_table.public.id}" route_table_id = "${aws_route_table.public.id}"
destination_cidr_block = "0.0.0.0/0" destination_cidr_block = "0.0.0.0/0"
gateway_id = "${aws_internet_gateway.this.id}" gateway_id = "${aws_internet_gateway.this.id}"
timeouts {
create = "5m"
}
} }
################# #################
...@@ -228,6 +233,11 @@ resource "aws_route" "private_nat_gateway" { ...@@ -228,6 +233,11 @@ resource "aws_route" "private_nat_gateway" {
route_table_id = "${element(aws_route_table.private.*.id, count.index)}" route_table_id = "${element(aws_route_table.private.*.id, count.index)}"
destination_cidr_block = "0.0.0.0/0" destination_cidr_block = "0.0.0.0/0"
nat_gateway_id = "${element(aws_nat_gateway.this.*.id, count.index)}" nat_gateway_id = "${element(aws_nat_gateway.this.*.id, count.index)}"
timeouts {
create = "5m"
}
} }
###################### ######################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment