尝试使用Cloud Formation创建LaunchConfiguration时出现未授权错误

时间:2020-03-17 13:57:14

标签: amazon-web-services amazon-cloudformation aws-auto-scaling

我正在尝试为我的AutoScaling组创建一个配置启动器。我尝试将其部署在新的Amazon帐户上,但是遇到授权错误。不管我是用root帐户还是admin帐户连接,我总是会遇到相同的错误。

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

欢迎提出任何想法:)

0 个答案:

没有答案
相关问题