Auto Scaling服务器组创建失败。 AWS CloudFormation

时间:2019-08-26 07:22:36

标签: amazon-web-services amazon-cloudformation autoscaling

我在模板中创建AutoScalingServerGroup失败:

以下资源创建失败:[AutoScalingServerGroup]。

从1个中接收到1个FAILURE信号。无法满足100%MinSuccessfulInstancesPercent要求

收到的带有UniqueId i-00440059c7d727663的FAILURE信号

CF模板(发生故障的确切嵌套堆栈):https://pastebin.com/LzjqakSE

CF模板(失败的嵌套堆栈的父堆栈): https://pastebin.com/b8t7p3R7

我假设它与AutoScalingServerGroup有关。

    Type: "AWS::AutoScaling::AutoScalingGroup"
    Properties:
      LaunchConfigurationName: !Ref "LaunchConfig"
      DesiredCapacity: 1
      MinSize: 0
      MaxSize: 1
      HealthCheckType: "ELB"
      HealthCheckGracePeriod: "1200"
      MetricsCollection:
       -
          Granularity: "1Minute"
          Metrics:
           - "GroupInServiceInstances"
      VPCZoneIdentifier:
        - Fn::ImportValue:
           !Sub "${TenantName}-PrivateSubnetAz1"
        - Fn::ImportValue:
           !Sub "${TenantName}-PrivateSubnetAz2"
        - Fn::ImportValue:
           !Sub "${TenantName}-PrivateSubnetAz3"
      Tags:
       -
          Key: "Company"
          Value: "FluentRetail"
          PropagateAtLaunch: "true"
        -
          Key: "Environment"
          Value: !Ref "Environment"
          PropagateAtLaunch: "true"
        -
          Key: "EnvironmentTag"
          Value: !Ref "EnvironmentTag"
          PropagateAtLaunch: "true"
        -
          Key: "Platform"
          Value: "Application"
          PropagateAtLaunch: "true"
        -
          Key: "HostRole"
          Value: "core-api"
          PropagateAtLaunch: "true"
        -
          Key: "Region"
          Value: !Ref "AWS::Region"
          PropagateAtLaunch: "true"
        -
          Key: "Version"
          Value: !Ref "CodebaseVersion"
          PropagateAtLaunch: "true"
    CreationPolicy:
      ResourceSignal:
        Count: 1
        Timeout: "PT45M"

嵌套堆栈由父堆栈调用,父堆栈失败,因为嵌套堆栈无法创建AutoScalingServerGroup。预期的结果是成功创建ASG。

0 个答案:

没有答案