Skip to content

Commit f58d513

Browse files
Merge pull request #1682 from wking/aws-raise-security-group-and-route-timeouts
data/aws: 20-minute create timeouts for routes and security groups
2 parents 0ae3014 + 246f4a1 commit f58d513

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

data/data/aws/bootstrap/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ resource "aws_lb_target_group_attachment" "bootstrap" {
140140
resource "aws_security_group" "bootstrap" {
141141
vpc_id = "${var.vpc_id}"
142142

143+
timeouts {
144+
create = "20m"
145+
}
146+
143147
tags = "${merge(map(
144148
"Name", "${var.cluster_id}-bootstrap-sg",
145149
), var.tags)}"

data/data/aws/vpc/sg-master.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
resource "aws_security_group" "master" {
22
vpc_id = "${data.aws_vpc.cluster_vpc.id}"
33

4+
timeouts {
5+
create = "20m"
6+
}
7+
48
tags = "${merge(map(
59
"Name", "${var.cluster_id}-master-sg",
610
), var.tags)}"

data/data/aws/vpc/sg-worker.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
resource "aws_security_group" "worker" {
22
vpc_id = "${data.aws_vpc.cluster_vpc.id}"
33

4+
timeouts {
5+
create = "20m"
6+
}
7+
48
tags = "${merge(map(
59
"Name", "${var.cluster_id}-worker-sg",
610
), var.tags)}"

data/data/aws/vpc/vpc-private.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ resource "aws_route" "to_nat_gw" {
1313
destination_cidr_block = "0.0.0.0/0"
1414
nat_gateway_id = "${element(aws_nat_gateway.nat_gw.*.id, count.index)}"
1515
depends_on = ["aws_route_table.private_routes"]
16+
17+
timeouts {
18+
create = "20m"
19+
}
1620
}
1721

1822
resource "aws_subnet" "private_subnet" {

data/data/aws/vpc/vpc-public.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ resource "aws_route" "igw_route" {
2323
destination_cidr_block = "0.0.0.0/0"
2424
route_table_id = "${aws_route_table.default.id}"
2525
gateway_id = "${aws_internet_gateway.igw.id}"
26+
27+
timeouts {
28+
create = "20m"
29+
}
2630
}
2731

2832
resource "aws_subnet" "public_subnet" {

0 commit comments

Comments
 (0)