ERROR: NotAuthorizedError - Operation Denied with EB CREATE

0

Hi, I'm trying to connect to Elastic Beanstalk to deploy my Flask App but I keep getting this error = ERROR: NotAuthorizedError - Operation Denied. Access Denied, whenever I type eb create in my EB CLI. Can please urgently help with us? The permissions I have given to the user are - AdministratorAccess-AWSElasticBeanstalk, AmazonEC2FullAccess and AWSCodeCommitFullAccess. I am trying to deploy my local code for the app. The app gets successfully created but the env does not and I get the abovementioned error.

1 Answer
0

It looks like the user you are using to deploy the Flask app to Elastic Beanstalk does not have the necessary permissions to complete the deployment.

Here are a few steps you can try:

  1. Check the IAM policy for the user. Some common policies for Elastic Beanstalk include "AWSElasticBeanstalkFullAccess" and "AWSElasticBeanstalkServiceRole".
  2. Verify the region: Ensure that you are deploying the app to the correct AWS region.
  3. Use an IAM role with Elastic Beanstalk: You can use an IAM role to deploy your app to Elastic Beanstalk.
EXPERT
answered a year 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.

Guidelines for Answering Questions