From 4546cf8732489de1d844e251029792ce028156e5 Mon Sep 17 00:00:00 2001 From: Quentin BERTRAND Date: Mon, 24 Jun 2024 14:43:53 +0200 Subject: [PATCH] Fix: add depends_on instance profile for EB env --- 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" {