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
gefragt vor 6 Monaten94 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen