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 + ] }