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()