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" {