简体   繁体   English

支持文件的Amazon EC2的Python API

[英]Python API for Amazon EC2 that supports files

The command line tool ec2-run-instances takes a -f parameter to pass a file to the instance at run time. 命令行工具ec2-run-instances使用-f参数在运行时将文件传递给实例。 Are there any Python APIs for EC2 that do the equivalent? 是否有等效的EC2 Python API?

I'm looking to customize a Wowza Media Server, which requires passing in a file when booting up a new image. 我要自定义Wowza Media Server,它需要在启动新映像时传递文件。

You can either use boto. 您可以使用boto。 Then you can possibly code a small script to open a file first and read it's contents and pass it as user-data. 然后,您可能可以编写一个小脚本来首先打开一个文件,然后读取其内容并将其作为用户数据传递。

Or try http://github.com/fschulze/mr.awsome 或尝试http://github.com/fschulze/mr.awsome

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM