我正在尝试为我的 AutoScaling 组创建一个配置启动器。我尝试将其部署在新的 Amazon 帐户上,但遇到授权错误。无论我是使用 root 帐户还是管理员帐户连接,我总是会遇到同样的错误。
ConfigLauncher - CREATE_FAILED : You are not authorized to perform this operation.
(Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError;
我的配置是:
ApiScale:
Type: "AWS::AutoScaling::AutoScalingGroup"
Properties:
LoadBalancerNames:
- !Ref ELB
MinSize:
Ref: AutoScalingMinSizeParameter
MaxSize:
Ref: AutoScalingMaxSizeParameter
AvailabilityZones:
Fn::GetAZs:
Ref: "AWS::Region"
LaunchConfigurationName:
Ref: ConfigLauncher
HealthCheckGracePeriod: 60
HealthCheckType: ELB
ConfigLauncher:
Type: "AWS::AutoScaling::LaunchConfiguration"
Properties:
IamInstanceProfile: "arn:aws:iam::1111111111111:instance-profile/ec2InstancesRole"
ImageId:
Ref: LinuxAmiImageIdParameter
InstanceType:
Ref: EC2InstanceTypeParameter
KeyName:
Ref: SshKeyNameParameter
UserData: xxxxx
欢迎任何想法:)