简体   繁体   中英

Cloudformation template update without deleting the existing stack and resources?

I have created a stack with multiple resources such as s3 , dynamodb ,lambda functions. I am trying to update the stack with the same environment, but the resources names of both the stacks are same such as "dynamodb_cust_data_dev" .

I always get an error that this xyz resource already exists with the same name. Stack creation failed

client_variable_mapping_dev already exists in stack arn:aws:cloudformation:ap-south-1:505xxxxxxx:stack/dev-test/f7f1af20-e199-11ec-b2be-061b20ab09f2

Is it possible that the new stack overwrites the old resources which have the same names?

Is it possible that the new stack overwrites the old resources which have the same names?

No. Your deployment will just fail. You must use different names, or just let CloudFormation generate random name for your resources.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM