boto/boto — Issue #538: Cannot Read in File As User Data
Author: akoumjian
Created: 2012-01-31 20:51:48+00:00
State: open

When using ec2.run_instances, currently the user_data parameter only accepts strings. Since both the CLI tools and web interface for EC2 accept files (and more to the point, the string contents are almost always file contents anyways), it seems appropriate to accept file objects for this parameter.

It may even make sense to accept relative and absolute path names for files. I have an incredible simple patch for the first suggestion which I can send a pull request for, but I didn't know how this fit in with overall design choices.