Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: NotAuthorizedError - Operation Denied on AWS eb init

I try to initialize an elastic beanstalk application with eb cli using command eb init. After several steps it asks for some input to create a public key. However, when I enter input it gives "ERROR: NotAuthorizedError - Operation Denied. You are not authorized to perform this operation. Encoded authorization failure message: " error. My IAM user roles are listed here :

 AWSCodeCommitFullAccess
 AmazonEC2ContainerRegistryFullAccess
 AWSElasticBeanstalkMulticontainerDocker
 AmazonECS_FullAccess
 AmazonECSTaskExecutionRolePolicy
 AmazonEC2ContainerServiceforEC2Role
 AmazonEC2ContainerServiceRole
 AdministratorAccess-AWSElasticBeanstalk
 AWSElasticBeanstalkReadOnly

Do I need an additional permission to be able to intialize a beanstalk application?

like image 461
cuneytyvz Avatar asked Feb 24 '26 04:02

cuneytyvz


1 Answers

It's about permissions.

  1. Go to AWS Dashboard
  2. Search for IAM
  3. Go to Users
  4. Select the user (Or user group assigned to that user)
  5. Make sure that the user has the following permissions:
  • AmazonEC2FullAccess
  • AdministratorAccess-AWSElasticBeanstalk
like image 191
Omar Magdy Avatar answered Feb 27 '26 02:02

Omar Magdy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!