Skip to content

Does a Resource ARN Change after creation

0

Does a resource ARN change once created? For instance, if I delete my resource, say a LF, and recreate it using CF, does the LF get a new ARN, or does it maintain the previously assigned ARN?

asked 2 years ago340 views

2 Answers
0
Accepted Answer

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.

answered 2 years ago

EXPERT

reviewed 2 years ago

0

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.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.