Amazon Beanstalk EC2 S3 issue

14 views
Skip to first unread message

l l

unread,
Oct 22, 2013, 5:24:37 PM10/22/13
to boto-...@googlegroups.com
I made a very short boto based script to create a new bucket in my S3. The script works perfectly on my local computer. When I use beanstalk to upload the zip file with the python application inside it does not work. It does nothing and I cannot find anything in the logs relating to why nothing is happening. I am not sure what I am missing. All help is greatly appreciated. 

--------------------------- application.py

import sys
import os
from boto.s3.key import Key
from boto.s3.connection import S3Connection

def main():
    conn = S3Connection(accesskey, secretkey)
    bucket = conn.create_bucket('test5032')
    k = Key(bucket)
    k.key = 'please'
    d = 'work'
    k.set_contents_from_string(d)

if __name__ == "__main__":
main()
Reply all
Reply to author
Forward
0 new messages