自动扩展的 AWS Codestar 设置 Beanstalk 策略错误
AWS Codestar Setup Beanstalk Policy Errors for Auto-scaling
我一直在尝试使用 Elastic Beanstalk 在 AWS Ruby 和 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 policy.So 中定义的资源集执行操作 iam:CreateServiceLinkedRole 需要执行操作 "CreateServiceLinkedRole"添加到您的自动缩放策略成功的角色。
我一直在尝试使用 Elastic Beanstalk 在 AWS Ruby 和 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 policy.So 中定义的资源集执行操作 iam:CreateServiceLinkedRole 需要执行操作 "CreateServiceLinkedRole"添加到您的自动缩放策略成功的角色。