Skip to content

The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.

0

I used the generic role for creating a new instance, it errored out: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.

I added new permissions and even gave it administrator permissions, I'm still getting the same error: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.

I know that Beanstalk is more complicated to get going, but this is getting bad.

asked 3 years ago10.3K views

2 Answers
0

Hi,

The error looks similar to the following problem reported by another user a few days ago. Can you check if the solution is also useful for you? If not, can you provide us with more information?

EXPERT

answered 3 years ago

0

Earlier Elastic Beanstalk used to create a default EC2 instance profile named aws-elasticbeanstalk-ec2-role the first time an AWS account created an environment. However, recent AWS security guidelines don’t allow an AWS service to automatically create roles with trust policies to other AWS services, EC2 in this case. Please check this detailed answer on StackOverflow to fix the issue - https://stackoverflow.com/a/76620598/12326605

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.