Use CloudFormer in Round-Trip Engineering of AWS Resources

耗尽温柔 提交于 2020-07-21 08:26:41

问题


I would like to use CloudFormer in an automated way to generate templates of existing resources in my VPC. I can create the cloudformer instance using Ruby SDK CloudFormation::Client.create_stack() and tear it down using CloudFormation::Client.delete_stack() - but while it's running, I can't figure out how to talk to it to ask it to generate cloudformation templates for resources. I envision doing something like:

for every SecurityGroup in VPC:
    ask CloudFormer to generate a cloudformation template of the SecurityGroup
    store the template in S3
    scan the template for compliance with business rules etc.
end

How do I talk to CloudFormer once it's running (in a non-interactive way)? Has anyone done this? I hope I don't have to use Selenium etc. to talk to it's webUI.


回答1:


CloudFormer is still in beta phase and does not have command-line-interface tools in the same way that other first-class AWS services do, so, unfortunately, there is no way to interact with the running application programmatically.



来源:https://stackoverflow.com/questions/46432095/use-cloudformer-in-round-trip-engineering-of-aws-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!