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
已提问 6 个月前94 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容