amazon-web-services - AWS Codestar 设置自动扩展的 Beanstalk 策略错误

标签 amazon-web-services aws-cloudformation autoscaling amazon-elastic-beanstalk aws-codestar

我一直在尝试使用 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/

相关文章:

amazon-web-services - 我听说使用弹性 IP 通常被认为是一种糟糕的架构设计。为什么这样 ?为什么不建议使用弹性 IP?

node.js - AWS SAM 两个域映射到单个函数

amazon-web-services - AWS 中的参数引用

amazon-web-services - 自动缩放组设置为 0 个实例时的 AWS Codedeploy

ubuntu - Curl:无法连接到 install.meteor.com 端口 443(AWS 服务器)

amazon-ec2 - 当 ELB 说它不可用时,如何让 EC2 实例自动重启?

mysql - 如何识别 AWS RDS 扩展条件

amazon-web-services - RDS不支持创建以下组合的数据库实例

Kubernetes AutoScaler未缩放,HPA显示目标<未知>

mongodb - statefulset 最佳实践的动态扩展