Error when create a new elasticbeanstalk env: Invalid option specification (Namespace: 'aws:elasticbeanstalk:managedactions', OptionName: 'ManagedActionsEnabled') using an existing service role

0

Hello I am using PHP 7.4 running on 64bit Amazon Linux 2/3.5.8. This envi has a security role as arn:aws:iam::123456789:role/aws-service-role/elasticbeanstalk.amazonaws.com/AWSServiceRoleForElasticBeanstalk

Now I want to upgrade it with Linux 2023 and php 8.1. I created a new Environment and selected the existing service role in the dropdown list: AWSServiceRoleForElasticBeanstalk. After filling other fields "EC2 key pair" and EC2 instance profile (with the values: "aws-elasticbeanstalk-ec2-role" ) similar to my old env , I got the error when clicked "Next":

Invalid option specification (Namespace: 'aws:elasticbeanstalk:managedactions', OptionName: 'ManagedActionsEnabled'): You can't enable managed platform updates when your environment uses the service-linked role 'arn:aws:iam::123456789:role/aws-service-role/elasticbeanstalk.amazonaws.com/AWSServiceRoleForElasticBeanstalk'. Select a service role that has the 'AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy' managed policy.

How I could fix this error (I could not see AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy)

Many thanks

son
asked 5 months ago87 views
No Answers

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