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
54
votes
9 answers

Is it possible to save datetime to DynamoDB?

I have the next code: users_table = Table(users_table_name, connection=Core.aws_dynamodb_connection) users_table.put_item(data={ "login": login, "password": hashlib.sha256(password.encode("utf-8")).hexdigest(), "profile": profile, …
54
votes
3 answers

Using Amazon s3 boto library, how can I get the URL of a saved key?

I am saving a key to a bucket with: key = bucket.new_key(fileName) key.set_contents_from_string(base64.b64decode(data)) key.set_metadata('Content-Type', 'image/jpeg') key.set_acl('public-read') After the save is successful, how can…
S-K'
  • 3,188
  • 8
  • 37
  • 50
53
votes
12 answers

Why are no Amazon S3 authentication handlers ready?

I have my $AWS_ACCESS_KEY_ID and $AWS_SECRET_ACCESS_KEY environment variables set properly, and I run this code: import boto conn = boto.connect_s3() and get this error: boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1…
user334856
53
votes
1 answer

Difference between s3cmd, boto and AWS CLI

I am thinking about redeploying my static website to Amazon S3. I need to automate the deployment so I was looking for an API for such tasks. I'm a bit confused over the different options. Question: What is the difference between s3cmd, the Python…
user1781186
51
votes
6 answers

Override S3 endpoint using Boto3 configuration file

OVERVIEW: I'm trying to override certain variables in boto3 using the configuration file (~/aws/confg). In my use case I want to use fakes3 service and send S3 requests to the localhost. EXAMPLE: In boto (not boto3), I can create a config in ~/.boto…
Vor
  • 33,215
  • 43
  • 135
  • 193
51
votes
9 answers

How do I install boto?

So that I am able to work with it within my python scripts?
Worbis
  • 547
  • 1
  • 4
  • 3
50
votes
12 answers

Getting S3 objects' last modified datetimes with boto

I'm writing a Python script that uploads files to S3 using boto librairy. I only want to upload changed files (which I can check by their "last modified" datetimes), but I can't find the Boto API endpoint to get the last modified date.
vreal
  • 797
  • 1
  • 7
  • 16
50
votes
6 answers

How can I use boto to stream a file out of Amazon S3 to Rackspace Cloudfiles?

I'm copying a file from S3 to Cloudfiles, and I would like to avoid writing the file to disk. The Python-Cloudfiles library has an object.stream() call that looks to be what I need, but I can't find an equivalent call in boto. I'm hoping that I…
joemastersemison
  • 533
  • 1
  • 4
  • 7
45
votes
3 answers

What does boto stand for

What does Boto stand for in the context of AWS? It seems like a random word to choose for an api name. Is it an acronym? I have tried googling around and see no indication of what it could mean.
user3726494
  • 493
  • 4
  • 11
43
votes
10 answers

Read a file line by line from S3 using boto?

I have a csv file in S3 and I'm trying to read the header line to get the size (these files are created by our users so they could be almost any size). Is there a way to do this using boto? I thought maybe I could us a python BufferedReader, but I…
gignosko
  • 977
  • 1
  • 8
  • 12
42
votes
9 answers

How can I get the list of only folders in amazon S3 using python boto?

I am using boto and python and amazon s3. If I use [key.name for key in list(self.bucket.list())] then I get all the keys of all the…
user1958218
  • 1,571
  • 3
  • 18
  • 28
39
votes
3 answers

Can I use boto3 anonymously?

With boto I could connect to public S3 buckets without credentials by passing the anon= keyword argument. s3 = boto.connect_s3(anon=True) Is this possible with boto3?
MRocklin
  • 55,641
  • 23
  • 163
  • 235
39
votes
4 answers

How to append a value to list attribute on AWS DynamoDB?

I'm using DynamoDB as an K-V db (cause there's not much data, I think that's fine) , and part of 'V' is list type (about 10 elements). There's some session to append a new value to it, and I cannot find a way to do this in 1 request. What I did is…
Kane Blueriver
  • 4,170
  • 4
  • 29
  • 48
39
votes
5 answers

Retrieve all items from DynamoDB using query?

I am trying to retrieve all items in a dynamodb table using a query. Below is my code: import boto.dynamodb2 from boto.dynamodb2.table import Table from time import sleep c =…
dlaser
  • 1,295
  • 1
  • 11
  • 15
38
votes
3 answers

How to close Boto S3 connection?

I'm using Boto to connect to Amazon S3 in my Python program. I'm able to open a connection and upload files to a bucket. I figured I should then close the connection to release resources and, more important, to avoid any security risks from leaving…
Steve Saporta
  • 4,581
  • 3
  • 30
  • 32