1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Per the CDK docs at https://docs.aws.amazon.com/cdk/v2/guide/resources.html#resources_physical_names, you can set the physical name for some resources using the *_name
property. The list of resources which support this is in the CloudFormation docs (since CDK is beholden to CFN's resource model, so you can't just do this on any resource).
It would be worth bearing in mind the warnings in both those pieces of documentation around the impact of fixing a resource's physical name: if you later need to perform an update which requires replacement of the resource, you won't be able to. (This is because CFN creates a new resource, then deletes the old one, and you can't have two resources with the same physical id.)
관련 콘텐츠
- AWS 공식업데이트됨 10달 전
can a DeletionPolicy: Retain and solve this problem in regards of resource replacement?