boto Questions
3
I'm having difficulty figuring out a way (if possible) to create a new AWS keypair with the Python Boto library and then download that keypair.
Parley asked 25/7, 2012 at 21:2
4
Solved
I have a large local file. I want to upload a gzipped version of that file into S3 using the boto library. The file is too large to gzip it efficiently on disk prior to uploading, so it should be g...
2
I am using boto 2.32.1 with Python 2.7.6. I am having problems with the list_orders function of boto's mws modules to get the XML data of my Amazon orders.
Here is the call I make:
response = con...
Straightaway asked 26/8, 2014 at 10:28
3
Solved
I have exported AWS ACCESS KEY and SECRET via the environment variables, is there way to use those variables in the boto script instead of writing them to a file on the system?
I don't want to writ...
Exequies asked 24/11, 2014 at 10:9
5
Solved
I don't want the message to count as "read" but I'd like to know what's in the queue. The documentation:
http://boto.s3.amazonaws.com/ref/sqs.html#module-boto.sqs
Isn't very straight forward abou...
Expendable asked 11/4, 2012 at 5:48
14
I have to move files between one bucket to another with Python Boto API. (I need it to "Cut" the file from the first Bucket and "Paste" it in the second one).
What is the best way to do that?
** N...
8
I am currently trying to get access to Amazon S3 inside a virtual machine and download files like so:
s3 = boto3.resource('s3',
aws_access_key_id="xxxxxxxxxxx",
aws_secret_access_key="xxxxxxxxxx...
Dianthus asked 11/5, 2017 at 6:6
9
Solved
I created a folder in s3 named "test" and I pushed "test_1.jpg", "test_2.jpg" into "test".
How can I use boto to delete folder "test"?
Pastern asked 11/7, 2012 at 6:10
8
Solved
I am trying to connect to S3 using boto, but it seems to fail. I've tried some workarounds, but they don't seem to work. Can anyone please help me with this. Below is the code.
import boto
if no...
Herwick asked 23/1, 2015 at 17:18
2
Solved
I wrote a function to validate the AWS keys by just creating the ec2 connection object
import boto.ec2
try:
ec2Conn = boto.ec2.connect_to_region(region, aws_access_key_id=access_key, aws_secret_a...
Raeraeann asked 14/5, 2013 at 8:53
13
Solved
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 ...
Misstate asked 13/3, 2012 at 6:31
11
So I've been using Boto in Python to try and configure autoscaling based on CPUUtilization, more or less exactly as specified in this example:
http://boto.readthedocs.org/en/latest/autoscale_tut.ht...
Omnivorous asked 12/11, 2012 at 17:44
8
Solved
I am trying to send logs to AWS CloudWatch Logs using Python and Boto framework. I am doing this:
res=logs.put_log_events("FOO", "BAR",
[{'timestamp':int(round(time.time() * 1000)),
'message':ti...
Intertidal asked 17/6, 2015 at 17:1
8
I need to create a CSV and upload it to an S3 bucket. Since I'm creating the file on the fly, it would be better if I could write it directly to S3 bucket as it is being created rather than writing...
6
I am attempting to create a python script to connect to and interact with my AWS account. I was reading up on it here https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
...
Gherardi asked 10/6, 2020 at 19:42
19
When I simply run the following code, I always gets this error.
s3 = boto3.resource('s3')
bucket_name = "python-sdk-sample-%s" % uuid.uuid4()
print("Creating new bucket with name:&qu...
12
Solved
I'm getting the error "The role defined for the function cannot be assumed by Lambda" when I'm trying to create a lambda function with create-function command.
aws lambda create-function
--regi...
Autocracy asked 5/4, 2016 at 7:9
4
I'm using python lib boto for sending emails via SES. And when I tried to send to more than 30 (but less than 50, so limit is not exceeded) recipients, I got an error:
<Error>
<Type>...
Noshow asked 25/12, 2014 at 14:40
9
Solved
I am trying to connect Django project to AWS S3.
settings.py contains below:
AWS_ACCESS_KEY_ID = #ID
AWS_SECRET_ACCESS_KEY = #Key
AWS_STORAGE_BUCKET_NAME = #Bucket
AWS_S3_CUSTOM_DOMAIN = '%s.s3.a...
Obovate asked 20/2, 2019 at 14:46
5
Solved
Does anyone have a quick way of getting the line count of a file hosted in S3? Preferably using the CLI, s3api but I am open to python/boto as well.
Note: solution must run non-interactively, ie in...
Counterpressure asked 6/4, 2018 at 1:33
7
Solved
There must be an easy way to get the file size (key size) without pulling over a whole file. I can see it in the Properties of the AWS S3 browser. And I think I can get it off the "Content-length" ...
6
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 = boto.dynamodb2.conne...
Kythera asked 2/2, 2014 at 20:27
3
In the example below I want to set a timestamp metadata attribute when created an S3 object. How do I do that? The documentation is not clear.
import uuuid
import json
import boto3
import botocore...
Khufu asked 18/11, 2015 at 3:28
3
Solved
Using boto in Python, how can I find the boto.ec2 instance object given an IP address?
Sunder asked 11/5, 2015 at 19:57
12
Solved
Is there a way to get an item depending on a field that is not the hashkey?
Example
My Table Users: id (HashKey), name, email
And I want to retrieve the user having email as '[email protect...
Telecast asked 17/9, 2014 at 9:5
1 Next >
© 2022 - 2025 — McMap. All rights reserved.