Questions tagged [boto]

boto is an open-source Python Interface to Amazon Web Services

Boto is a Python package that provides an interface to Amazon Web Services. The code is hosted on github.com (https://github.com/boto/boto) and the documentation can be found at http://docs.pythonboto.org.

Boto supports the following services:

  • Compute
    • Amazon Elastic Compute Cloud (EC2)
    • Amazon Elastic Map Reduce (EMR)
    • AutoScaling
    • Elastic Load Balancing (ELB)
  • Content Delivery
    • Amazon CloudFront
  • Database
    • Amazon Relational Data Service (RDS)
    • Amazon DynamoDB
    • Amazon SimpleDB
  • Deployment and Management
    • AWS Identity and Access Management (IAM)
    • Amazon CloudWatch
    • AWS Elastic Beanstalk
    • AWS CloudFormation
  • Application Services
    • Amazon CloudSearch
    • Amazon Simple Workflow Service (SWF)
    • Amazon Simple Queue Service (SQS)
    • Amazon Simple Notification Server (SNS)
    • Amazon Simple Email Service (SES)
  • Networking
    • Amazon Route53
    • Amazon Virtual Private Cloud (VPC)
  • Payments and Billing
    • Amazon Flexible Payment Service (FPS)
  • Storage
    • Amazon Simple Storage Service (S3)
    • Amazon Glacier
    • Amazon Elastic Block Store (EBS)
    • Google Cloud Storage
  • Workforce
    • Amazon Mechanical Turk
  • Other
    • Marketplace Web Services
2362 questions
1
vote
2 answers

Setting cron for boto-rsync

I am trying to run boto-rsync using script.sh: #!/bin/bash echo `date` echo "start" boto-rsync -d 2 -a -s s3://db-dump/hourly/2013/ /mnt/dir echo "stop" It works perfectly fine. But when I run this using crontab, it…
Karm
  • 19
  • 4
1
vote
3 answers

How/when to calculate md5 hash of s3 uploads using Boto library

In the boto/s3 module there is function called set_contents_from_filename which seems to take an md5 hash as a parameter. But the documentation is not clear on when/how to calculate the hash. Could someone help me with this? Also, how could I save…
rgm
  • 1,241
  • 2
  • 16
  • 33
1
vote
1 answer

What would cause a 'BotoServerError: 400 Bad Request' when calling create_application_version?

I have included some code that uploads a war file into an s3 bucket (creating the bucket first if it does not exist). It then creates an elastic beanstalk application version using the just-uploaded war file. Assume /tmp/server_war exists and is a…
groggygreggy
  • 153
  • 2
  • 8
1
vote
2 answers

how to use boto to connect/upload a file?

I literally just signed up for an S3 account, installed boto and would now like to try uploading a file. I'm using this as a reference - http://aws.amazon.com/articles/3998 I was surprised you needed to store your credentials as clear text in a…
Mark J Seger
  • 367
  • 2
  • 12
1
vote
1 answer

boto connection works locally and in heroku python shell but fails in webapp

I'm not sure how to diagnose this further. Heroku's evns are configured properly. Everything worked on my local machine line a charm. In production i get a internal server error when i try to use this functionality. I booked up a live shell and…
Drew Verlee
  • 1,880
  • 5
  • 21
  • 30
1
vote
5 answers

Boto 2.6 CloudSearch "No module named requests" Error

I'm following this tutorial: http://boto.cloudhackers.com/en/latest/cloudsearch_tut.html I've installed boto 2.6. The command: conn = boto.connect_cloudsearch() produces the error: >>> conn = boto.connect_cloudsearch()Traceback (most recent call…
waigani
  • 3,570
  • 5
  • 46
  • 71
1
vote
3 answers

Python if/else isn't working... doesn't satisfy if condition, but else doesn't execute

Well. I figured it out. It turns out that the if does not run exactly when it's not supposed to match, and that's because _s3_bucket.list(prefix=basename) = []. My faith in python has been restored. :) Thank you all! Why does this snippet of code…
az_
  • 1,493
  • 1
  • 16
  • 24
1
vote
1 answer

Python Boto Download Questions

If anyone has worked with boto I was wondering if you could help. I have this code currently: from boto.s3.connection import S3Connection from boto.s3.key import Key conn = S3Connection(XXX, YYY) bucket = conn.get_bucket('bucketname') latest =…
Jimmy
  • 12,087
  • 28
  • 102
  • 192
1
vote
1 answer

How to modify access policies in cloudsearch via boto

How can I change the access policies of a cloudsearch domain via boto? Is it possible at all? Using boto 2.6.0 I see a get_access_policies() method in the domain instance, but nothing for modifying the policies.
Alfe
  • 56,346
  • 20
  • 107
  • 159
1
vote
1 answer

How to get SimpleDB Query Count with Boto and SDBManager

I would like to query my SimpleDB domain to get the count of records that match a certain criteria. Something that could be done like this: rs = appsDomain.select("SELECT count(*) FROM %s WHERE (%s='%s' or %s='%s') and %s!='%s'" % (APPS_SDBDOMAIN,…
Jason Leidigh
  • 555
  • 7
  • 16
1
vote
1 answer

Errors in boto connection to Mturk

I'm working on boto versioned 2.6.0 . I have a problem with connecting to mturk. My code is : mturk_connection = MTurkConnection(aws_access_key_id=ACCESS_ID, aws_secret_access_key=SECRET_KEY, is_secure = True, host = HOST) print…
1
vote
1 answer

How to user boto dynamodb scan with excluseive_start_key

I want to do a scan on a table on dynamodb using boto, my problem is I want to paginate using the max_results and exclusive_start_key Actually it looks like the only way to access the LastEvaluatedKey to pass it as exclusive_start_key is to manually…
Ali
  • 18,665
  • 21
  • 103
  • 138
1
vote
1 answer

Boto upload to S3 not working for certain file types

The following code stores uploaded files in S3: def store_in_s3(filename, filecontent, type, modelname, format, manufacturer, adder_id): extension = os.path.splitext(filename)[1] filename = modelname + "-" + manufacturer + "-" + type + "-" +…
user1328021
  • 9,110
  • 14
  • 47
  • 78
1
vote
1 answer

aws + boto list of eips

Having a problem using boto to list any Elastic IPs. So far, have been pretty successful in getting back a list of instances, and performing certain operations with them. However, not really sure how to get a list/dictionary back of all eips…
Cmag
  • 14,946
  • 25
  • 89
  • 140
1
vote
2 answers

Check if file is finished writing to Amazon S3 in Django

In a view, I am generating a file, saving it as a field in a Django model (an file field) and returning the url: ... obj.pdf.save(obj.hash_id + '.pdf', File(open(destination_path, 'r'))) ret = { 'pdfUrl': obj.pdf.url } ret =…
zallarak
  • 5,287
  • 7
  • 38
  • 54
1 2 3
99
100