From cce5a7ea88b236ddd92e09eee6ef761f6302df29 Mon Sep 17 00:00:00 2001 From: Quentin BERTRAND Date: Mon, 24 Jun 2024 22:58:51 +0200 Subject: [PATCH] Fix: add depends_on instance profile for EB env (#267) --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index fa8ecea..d668895 100755 --- a/main.tf +++ b/main.tf @@ -1092,6 +1092,7 @@ resource "aws_elastic_beanstalk_environment" "default" { } } + depends_on = [aws_iam_instance_profile.ec2] } resource "random_string" "elb_logs_suffix" {