我修改了我的CloudFormation模板,使之在我的DynamoDB表中有不同的散列和排序键。
当我试图重新部署堆栈时,我得到了UPDATE_ROLLBACK_COMPLETE,在检查时,我看到了错误:
Error: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename 'MYResourceXXX' and update the stack again。
这似乎是因为我有一个名称相同但架构不同的现有表。
如何让CloudFormation重新
我有一个创建启动配置的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