[英]Validate AWS Resources With CloudFormation Templates
Is it possible to use AWS CloudFormation Templates to validate that already existing AWS resources are configured properly? 是否可以使用AWS CloudFormation模板来验证是否已正确配置现有的AWS资源? What I would like to do is create a JSON file according to the AWS EC2 Instance resource specification and validate that the instance is configured properly using BOTO3 .
我想做的是根据AWS EC2实例资源规范创建一个JSON文件,并使用BOTO3验证实例是否已正确配置。 I haven't been able to find this type of functionality in the AWS API, and was wondering if there was something that I missed, or there is a 3rd party tool that will do this for me.
我无法在AWS API中找到这种类型的功能,并且想知道是否缺少某些东西,或者是否有第三方工具可以为我完成此任务。
Thank you for your time. 感谢您的时间。
I don't believe this is possible - you'd run into some interesting issues in a lot of cases, as CloudFormation doesn't always name resources exactly the way you'd expect. 我不认为这是可能的-在很多情况下,您会遇到一些有趣的问题,因为CloudFormation并不总是按照您期望的方式命名资源。 Cloudformation is meant more for building resources and maintaining them, not verifying existing outside-of-cloudformation resources.
Cloudformation旨在更多地用于构建资源和维护资源,而不是验证现有的cloud-formation外资源。
Cool idea for a tool though, not sure if anything like that already exists. 不过,对于工具而言,这个想法很不错,不确定是否已经存在类似的东西。 It should be pretty easy to write something that snapshots various resources, then compares them over time using boto.
编写快照各种资源,然后使用boto将它们随时间进行比较应该很容易。
Good luck! 祝好运! If you write a tool (or find one) let me know - though almost all of our resources are managed in CloudFormation already (via stacker).
如果您编写一种工具(或找到一种工具),请告诉我-尽管我们几乎所有资源都已经在CloudFormation中(通过堆栈器)进行了管理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.