我一直在尝试使用 Elastic Beanstalk 在 AWS Ruby on Rails 上使用 Codestar。我尝试应用和分配自动扩展完全访问策略但无济于事。有人可以帮助我解决这些错误吗?也使用 root 帐户。尝试在角色下分配它,但没有成功。
错误消息:
Creating Auto Scaling group failed Reason: API: autoscaling:CreateAutoScalingGroup The default Service-Linked Role for Auto Scaling could not be created. com.amazonaws.services.identitymanagement.model.AmazonIdentityManagementException:
User: arn:aws:sts::**********:assumed-role/CodeStarWorker-phcnetworks-net-CloudFormation/AWSCloudFormation is not authorized to perform: iam:CreateServiceLinkedRole on resource: arn:aws:iam::**************:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling
(Service: AmazonIdentityManagement; Status Code: 403; Error Code: AccessDenied; Request ID: *******-******-*******)
Stack named 'awseb-e-*********-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBAutoScalingGroup].
最佳答案
报告的错误表明角色“CodeStarWorker-phcnetworks-net-CloudFormation”无权对 IAM 策略中定义的资源集执行操作 iam:CreateServiceLinkedRole。因此需要将操作“CreateServiceLinkedRole”添加到该角色让您的自动扩展策略取得成功。
关于amazon-web-services - AWS Codestar 设置自动扩展的 Beanstalk 策略错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53971579/