Skip to content

An error occurred (InsufficientPrivilegesException) when calling the UpdateEnvironment operation: Access Denied

0

Command: $ aws elasticbeanstalk update-environment --application-name $AWS_EBS_APPLICATION --environment-name $AWS_EBS_BW_ENVIRONMENT --version-label "v$TIMESTAMP"

An error occurred (InsufficientPrivilegesException) when calling the UpdateEnvironment operation: Access Denied

I do this from terminal(gitlab). I've created a user and attached all necessary policies, infact I have attached all policies of elastic beanstalk but still it is not working!!Enter image description here

asked 2 years ago413 views
2 Answers
0

Hello,

You can updating your policy with the actions from this gist and then try to execute update environment.

https://gist.github.com/RobertoSchneiders/c9ee659cc5a565642fd9

Elastic Beanstalk IAM References:

https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AdministratorAccess-AWSElasticBeanstalk.html

EXPERT
answered 2 years ago
  • no, it didn't work

0

Verify IAM User/Role Permissions: Ensure the IAM user or role has the necessary permissions. The minimal policy for updating an environment might look like this:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "elasticbeanstalk:UpdateEnvironment",
                "elasticbeanstalk:DescribeEnvironments",
                "elasticbeanstalk:DescribeEvents"
            ],
            "Resource": "*"
        }
    ]
}
answered 2 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.