AWS BeanStalk重命名为AutoScalingGroup

时间:2018-10-15 14:52:11

标签: amazon-web-services amazon-elastic-beanstalk

我想使用.ebextensions方法重命名AWS在创建beantalk环境时创建的AutoScalingGroup,以使其易于识别。

名称应为-asg

我尝试了以下.config,但未成功:

Resources:
  AWSEBAutoScaling:
    Type: "AWS::AutoScaling::AutoScalingGroup"
    Properties:
      "AutoScalingGroupName":
        "Fn::Join": [ "", [{Ref: AWSEBEnvironmentName}, "-asg"] ]

我找到了这些参考,但无法使其正常工作:

How to name an Auto Scaling Group in a CloudFormation template?

AWS Elastic Beanstalk - can I set the name of the scaling group?

我在部署时遇到的错误是:

  

2018-10-15T14:50:43.1626422Z 2018年10月15日星期一14:50:40 GMT + 0000(协调世界时)错误配置文件之一中的错误“ option_settings”验证失败。后续有更多细节。   2018-10-15T14:50:43.1626595Z Mon Oct 15 2018 14:50:40 GMT + 0000(协调世界时)错误无效的选项值:'null'(名称空间:'aws:ec2:vpc',OptionName:'Subnets '):指定VPC的子网。

我不想更改任何其他内容,仅想更改名称。这可能吗?

0 个答案:

没有答案