- Newest
- Most votes
- Most comments
Yes, if you delete a resource and then recreate it again , the resource will have a new ARN. This is to make sure all the resources in AWS can be identified unambiguously.
No, an Amazon Resource Name (ARN) will change when you delete and recreate a resource, even if you use the same name in case of CF. When a resource undergoes a replacement update in CloudFormation, a new resource is created and the existing resource is deleted, resulting in a new physical resource ID (ARN) being returned. This happens when updates are made to immutable properties of a resource. CloudFormation handles this by creating the new resource first and then deleting the old one during replacement updates. If customers want to prevent this ARN change during replacements, they can use UpdateReplacePolicy to safeguard their resources.

Thank you!
Thank you!