简体   繁体   English

使用CloudFormation模板验证AWS资源

[英]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.

相关问题 无法在AWS中验证或上传CloudFormation模板 - Unable to validate or upload CloudFormation templates in AWS 如何列出手动创建的AWS资源而不是CloudFormation模板创建的资源? - How to list manually created AWS resources and not resources created by CloudFormation templates? AWS Cloudformation [/Resources/PrivateGateway/Properties] 模板中不允许使用“空”值 - AWS Cloudformation [/Resources/PrivateGateway/Properties] 'null' values are not allowed in templates AWS CloudFormation删除资源 - AWS CloudFormation delete resources IAM CloudFormation模板AWS角色 - IAM CloudFormation Templates AWS Roles 模板包含错误。:[/Resources/CloudTrail/Type/EventSelectors] AWS CloudFormation CloudTrail 中的模板中不允许使用“null”值 - Template contains errors.: [/Resources/CloudTrail/Type/EventSelectors] 'null' values are not allowed in templates in AWS CloudFormation CloudTrail AWS CloudFormation模板:如何获取模板信息? - AWS CloudFormation templates: how to get templates info? CloudFormation 错误 [/Resources] 模板中不允许使用“null”值 - CloudFormation error [/Resources] 'null' values are not allowed in templates 协调执行AWS CloudFormation模板的工具 - Tool to orchestrate execution of AWS CloudFormation templates 动态更改 aws cloudformation 模板上的事件属性 - Dynamically change event properties on aws cloudformation templates
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM