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

Python boto Purging Aws old Ebs Snapshots "TypeError: unsupported operand type(s) for -: 'unicode' and 'datetime.timedelta'"

I'm trying to write a python script to delete ebs snapshots which are 14 days old. problem is i could not able to display 2 weeks old date and compare that with current date. Below is my code import boto import dateutil.relativedelta from…
Swaroop Kundeti
  • 515
  • 4
  • 11
  • 25
1
vote
1 answer

Not able to extract keys in a amzon S3 bucket having some prefix using python boto

I am trying to get list of keys with some prefix in amazon s3 bucket. I followed the steps shown here But still i am get keys available in that bucket with that prefix. Below is the code i tried. conn = boto.connect_s3(anon=True) bucket =…
user2695817
  • 121
  • 1
  • 7
1
vote
1 answer

AWS SNS - How to subscribe an endpoint to a topic using 'application' as protocol?

boto.sns sns_connection.subscribe(topic, protocol , endpoint) unable to subscribe an endpoint to a topic using 'application' as protocol. Current choices - for are: email|email-json|http|https|sqs|sms
Amit Talmor
  • 7,174
  • 4
  • 25
  • 29
1
vote
2 answers

Python boto lists volumes name followed by "Volumes:"

I'm new to python, trying to write a script for taking daily amazon ebs snapshots. Below is the script which lists out the volumes and input them to snapshot command in a for loop. #!/usr/bin/python #Script for purging AWS Ebs Snapshots. from…
1
vote
1 answer

Python-boto fails to create image from an instance

Python-boto fails to create a snapshot of a running instance (python-novaclient with the same provider and the same instance does the job fine). The output is here: the strange thing is the message "Invalid value 'i-00001e17' for instanceId." >>> cc…
1
vote
1 answer

Boto's Dynamodb error: Inexact numeric for `144095370333333371533171708191171526873`

I am using Dynamodb2 with boto. I have a schema defined as following: schema=[ HashKey('id', data_type=NUMBER), ] To insert into the id field I have generated a random id using Python's uuid with the command uuid.uuid1() as…
Sudip Kafle
  • 4,286
  • 5
  • 36
  • 49
1
vote
2 answers

Python Boto get_report class call?

What I am trying to do is get a report using Boto and Get_Report(). I have a valid report id, and seem to be having problems getting the python call correct. The call requires the variable ReportId and I have been trying various methods of getting…
Rush Dar
  • 21
  • 2
1
vote
2 answers

How to copy a file via the browser to Amazon S3 using Python (and boto)?

Creating a file (key) into Amazon S3 using Python (and boto) is not a problem. With this code, I can connect to a bucket and create a key with a specific content: bucket_instance = connection.get_bucket('bucketname') key =…
Neverland
  • 773
  • 2
  • 8
  • 24
1
vote
1 answer

Boto limiting results to 1000 for ec2.get_spot_price_history()?

I am using the boto library to access information from AWS EC2's get_spot_price_history function. I've noticed it limits results to 1000 - even though I'm not setting max_results. Is there any way to get more than 1000 results? Even if I set…
curious_george
  • 622
  • 2
  • 8
  • 19
1
vote
1 answer

boto us-gov-west-1 region

I try to list all instances in account, using code: for region in boto.ec2.regions(**creds): print region.name ec2_conn = boto.ec2.connect_to_region(region.name, **creds) for instance in ec2_conn.get_only_instances(): print…
Bunyk
  • 7,635
  • 8
  • 47
  • 79
1
vote
1 answer

Embed python modules in code

I have a python script that imports two external modules, psycopg2 and boto. But I need to run this script on a lot of machines that don't have those libs installed. Is there a way to put the code of these libs in the main script, so I can simply…
Gonzo
  • 1,533
  • 16
  • 28
1
vote
1 answer

boto SQS NoSuchVersion Error

My problem is best described by the following script: import boto boto.__version__ # OUT: '2.19.0' from boto.ec2.connection import EC2Connection ec2 = EC2Connection(**creds) regions = ec2.get_all_regions() from boto.sqs.connection import…
Bunyk
  • 7,635
  • 8
  • 47
  • 79
1
vote
1 answer

using reservation identification number in python script

When I initiate a new instance using boto, I get the reservation ID. But how do I use that reservation ID in the python script? myreservation = conn.run_instances('ami-999c9999', placement='us-east-1a',…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
1
vote
1 answer

How can I use boto or boto-rsync a full backup of 1000+ files to an S3-compatible cloud?

I'm trying to back up my entire collection of over 1000 work files, mainly text but also pictures, and a few large (0.5-1G) audiorecordings, to an S3 cloud (Dreamhost DreamObjects). I have tried to use boto-rsync to perform the first full 'put' with…
Ryan Schram
  • 129
  • 1
  • 1
  • 7
1
vote
1 answer

Use and operators for binary data in dynamodb

I have fixed length binary range key in dynamodb schema. I want to retrieve results which satisfy binary operation in boto. Like In database we have range_key = 1010101010 I want to get the row which have 1 in forth bit of range_key Thanks in…
Sujit Maharjan
  • 421
  • 1
  • 7
  • 17