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
posta 6 mesi fa94 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande