You are not authorized to perform this operation

0

An error message appears when I use the sandbox environment to create the second step of Auto scaling The error message is as follows: The launch template specified in step 1 is invalid: You are not authorized to perform this operation

Bao
已提问 4 个月前333 查看次数
2 回答
1

Hello,

It sounds like you may be encountering an IAM permissions issue when trying to create the second-step scaling configuration for your Auto Scaling group. Application Auto Scaling and EC2 Auto Scaling require specific IAM permissions to create and manage scaling configurations and resources.

A few things to check:

  • Make sure the IAM user or role you are using to create the scaling configuration has the necessary permissions. For Application Auto Scaling, you'll need application-autoscaling: CreateScalingPlan and application-autoscaling: UpdateScalingPlan permissions at minimum. For EC2 Auto Scaling, ec2:CreateAutoScalingGroup and ec2:UpdateAutoScalingGroup are required.
  • Confirm the IAM entity has permission to access the launch template referenced in the first scaling step. It needs ec2:DescribeLaunchTemplates permission.
  • If using a service-linked role, ensure it has been created by successfully configuring scaling for the resource type previously.
  • You can test with full admin permissions temporarily to validate it's a permissions issue.

For more info - https://docs.aws.amazon.com/solutions/latest/aws-innovation-sandbox/security.html https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_troubleshoot.html

Thanks

Abhinav

已回答 4 个月前
0

When creating an AutoScaling Group (ASG), your user or role must have permissions to create the instance which the ASG is configured to launch. This is to prevent an ASG being used for a permissions escalation attack.

One common permission missing is IAM:PassRole, which is needed if an EC2 Instance Role is included in the launch template. More information: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-launch-template-permissions.html

AWS
已回答 4 个月前

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

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

回答问题的准则

相关内容