我一直在尝试使用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].
答案 0 :(得分:1)
所报告的错误表明,角色“ CodeStarWorker-phcnetworks-net-CloudFormation”无权对IAM策略中定义的资源集执行操作iam:CreateServiceLinkedRole。因此需要将操作“ CreateServiceLinkedRole”添加到角色让您的自动缩放策略成功。