【发布时间】:2019-11-17 03:12:45
【问题描述】:
我有一个 CloudFormation 模板,用于创建启动配置:
Resources:
# Launch Configuration for the instances in the Atoscaling Group
LaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
AssociatePublicIpAddress: false
ImageId: !Ref EC2AMI
InstanceType: !Ref EC2InstanceType
KeyName: !Ref EC2Key
IamInstanceProfile: !ImportValue EC2RoleInstanceProfileARN
LaunchConfigurationName: jxt-private-asg-launch-config
SecurityGroups:
- !ImportValue PrivateSecurityGroupId
当我尝试更新堆栈时,出现以下错误:
当自定义命名资源时,CloudFormation 无法更新堆栈 需要更换
我通过 TeamCity 运行此脚本,因此用户无法每次都更改启动配置的名称。我该怎么做才能摆脱这个错误?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation