From 0ca161866cfa006bd51ce3d40570937bfa6e97a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 29 Jan 2020 17:01:30 +0100 Subject: [PATCH] add depends_on for aws_security_group on aws_route_table_association MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- modules/aws-vpc/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/aws-vpc/main.tf b/modules/aws-vpc/main.tf index bb35e30..09bf132 100644 --- a/modules/aws-vpc/main.tf +++ b/modules/aws-vpc/main.tf @@ -112,4 +112,9 @@ resource "aws_security_group" "main" { cidr_blocks = ["0.0.0.0/0"] } } + + /* Without this aws_route_table is not created in time */ + depends_on = [ + aws_route_table_association.main + ] }