有什么方法可以从创建的资源中找到堆栈名称吗? 假设我有 cft 模板,它创建堆栈 A 和资源 B。 然后由于需求,我必须为同一个资源B创建另一个堆栈C。
但是堆栈C的创建不允许我创建资源B,因为堆栈A已经锁定了它。 所以,我的目的是找到资源B所拥有的较早的堆栈并删除堆栈A。 然后,用CFT实现Stack B,然后创建资源B。
我正在尝试使用 boto3。
最佳答案
In addition to any tags you define, AWS CloudFormation automatically creates the following stack-level tags with the prefix aws::
aws:cloudformation:logical-id
aws:cloudformation:stack-id
aws:cloudformation:stack-name
The aws: prefix is reserved for AWS use
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
关于aws-cloudformation - 如何根据AWS Cloud-formation中的资源名称获取堆栈详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63961230/