[英]How to list manually created AWS resources and not resources created by CloudFormation templates?
I would like to have an AWS Config rule to notify on manual resource creation but ignore resources created by CloudFormation templates. 我想要一个AWS Config规则来通知手动资源创建,但是忽略CloudFormation模板创建的资源。
As a first step, listing all manually created resources would suffice. 第一步,列出所有手动创建的资源就足够了。
Is there any AWS feature I could use to achieve this with minimum effort? 我可以使用任何AWS功能以最少的努力实现这一目标吗?
CloudFormation uses tags which are reserved for AWS use only, cannot be added by regular users and are created automatically : CloudFormation使用仅保留供AWS使用的标签,普通用户不能添加并自动创建 :
In addition to any tags you define, AWS CloudFormation automatically creates the following stack-level tags with the prefix aws::
除了您定义的任何标签之外,AWS CloudFormation还会自动创建以下带有前缀aws的堆栈级标签::
- aws:cloudformation:logical-id
aws:cloudformation:logical-id
- aws:cloudformation:stack-id
aws:cloudformation:stack-id
- aws:cloudformation:stack-name
aws:cloudformation:stack-name
You could use AWS Config required-tags to check for the lack of presence of the reserved one(s) and that will give you non-CF created resources. 您可以使用AWS Config 必需标记来检查是否缺少保留的标记 ,这将为您提供非CF创建的资源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.