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
1 answer

Boto's get_all_images function

I tried to load list of AWS images using Python boto library. So my code is like con = boto.connect_ec2(user, pasw) con.get_all_instances() con.get_all_images() Problem is that, get_all_instances() works fine, but get_all_images() is not…
Rustem
  • 2,884
  • 1
  • 17
  • 32
1
vote
1 answer

Copying/using Python files from S3 to Amazon Elastic MapReduce at bootstrap time

I've figured out how to install python packages (numpy and such) at the bootstrapping step using boto, as well as copying files from S3 to my EC2 instances, still with boto. What I haven't figured out is how to distribute python scripts (or any…
1
vote
1 answer

Python SQS boto unreliable or bad implementation?

I got a box running on EC2 with 2 different python scripts that use 2 different SQS queues. My scripts have been working very good for the last week when all of the sudden one of them takes too long to pull messages from an SQS queue. Even when it…
PepperoniPizza
  • 8,842
  • 9
  • 58
  • 100
1
vote
1 answer

How to get the checksum of a key/file on amazon using boto?

I am writingtwo python scripts that shall move files from one bucket to another in Amazon S3 and then verify the content of the keys that have been moved. After having poured over they Key class of boto, and looking over this stackoverflow question,…
Martinnj
  • 579
  • 1
  • 5
  • 21
1
vote
1 answer

Copying files in the same Amazon S3 bucket

I am trying to copy the entire /contentstore/ folder on a bucket to a timestamped version. Basically /contenstore/ would be copied to /contentstore/20130729/. My entire script uses s3s3mirror first to clone my production S3 bucket to a backup. I…
akshtray
  • 161
  • 1
  • 1
  • 4
1
vote
2 answers

How can i edit existing A record using Python Boto in Amazon Route 53

I am using boto with Route 53 I can add the A record with changes = ResourceRecordSets(conn, "ZZZZZZZZZZ") change = changes.add_change("CREATE", "test.MYDOMAIN.com", "A") change.add_value("7.7.7.7") result = changes.commit() Is there any way that…
user22
  • 1,199
  • 2
  • 12
  • 15
1
vote
1 answer

boto-rsync multiple credentials

I'm using boto-rsync for synchronizing files between my local server and Amazon S3. I'm also using it with Dreamhost's DreamObjects. Currently, I'm either using symbolic links to point the script to the appropriate credentials or I'm simply adding…
1
vote
1 answer

what attributes are available on key in django boto amazon s3

I am using boto to get the list of keys from amazon. I use key.name to get the name of the key i want to know what other attributes are avaiable on key Is it mentioned on Amazon what info is available for any key
user1958218
  • 1,571
  • 3
  • 18
  • 28
1
vote
2 answers

boto's get_all_instances returns empty

I'm trying to fetch all the running instances with boto hence: import boto conn = boto.connect_ec2(aws_access_key_id='...',aws_secret_access_key='...') conn.get_all_instances(); but although I do have a running instance I get an empty list. when…
akiva
  • 2,677
  • 3
  • 31
  • 40
1
vote
2 answers

How to mount a snapshot from boto?

I'm using boto 2.5.1, Python 2.7, Ubuntu Precise. I want to mount a snapshot on an EC2 instance. I've gotten as far as creating a volume from the snapshot, but then I can't figure out how to attach it. If I do: [setup stuff elided] c =…
Roy Smith
  • 2,039
  • 3
  • 20
  • 27
1
vote
2 answers

Faster way to make S3 "folder hierarchy" than parsing of filenames?

I want to make a relatively basic tool to browse a bucket in S3 as a file hierarchy rather than simply a list of filenames with slashes in them. Currently, I am using boto to get the list of keynames in a bucket and then parsing the keynames to make…
Daniel Gorelik
  • 279
  • 1
  • 2
  • 10
1
vote
1 answer

amzon s3 boto, grant a new group IAM access, 403 error

I am using this code, which is very simple but it doesn't work. any ideas why? You should be able to run it if you have the credentials. from boto.s3.connection import S3Connection import boto import json iam =…
Kiarash
  • 7,378
  • 10
  • 44
  • 69
1
vote
2 answers

Setting file on S3 as read-only with Boto

How do you set a key on S3 using Boto so you won't accidentally overwrite it later? Is there a way to make it read-only or at least give you some sort of error if you eventually try to write to the same key again. I've tried changing ACLs, both the…
Rodrigo Deodoro
  • 1,371
  • 1
  • 9
  • 17
1
vote
2 answers

S3 bucket created from AWS management console not accessible with boto

I have a couple of buckets for an Amazon AWS account. Using boto I can see all the buckets with: conn = boto.connect_s3() buckets = conn.get_all_buckets() print buckets However when trying to get a specific bucket: # bucket-1 is present in the…
pka
  • 563
  • 4
  • 9
1
vote
2 answers

Python Boto created cloud-init #include script not running on EC2

I've run out of ideas, would appreciate some help. I'm starting and EC2 Ubuntu 12.04 instance and adding the following script to the user data: #!/usr/bin/env python import sys from boto.s3.connection import S3Connection AWS_BOOTSTRAP_BUCKET =…
charliemurder
  • 343
  • 1
  • 2
  • 12