Reputation: 1349
When I try to deploy (cloudformation create-change-set
and cloudformation execute-change-set
) the CFN stack the creation fails if some of the resources from the CFN template exists.
Is it possible to force override or skip creation of the resource if it exists?
Thanks,
Upvotes: 4
Views: 3799
Reputation: 2057
No, that's one of the biggest limitations of CloudFormation - it can't handle existing resources. You need to remove existing ones and re-create them with CloudFormation.
That's why, if you are going to use it, you need to use it from the very beginng. Unfortunately there is no such stuff like import
in Terraform.
On latest re:invent CloudFormation team mentioned handling "drifts", but there is still nothing available regarding that in live product.
--edit--
At the end of 2019 AWS finally introduced importing resources into CloudFormation stacks!
Upvotes: 6