boto3 Questions
6
Solved
This Play installs python3, pip3, boto3 and botocore, and tries to use aws_s3 module to download a file:
TASK [run yum update -y using yum module]
*************************************************...
1
I am running boto3 on AWS Lambda but getting a boto3 client is very slow. I am currently running a python3.9 runtime on AWS Lambda that creates handfuls of presigned url for s3 resources.
A key lin...
Bladdernut asked 18/4, 2023 at 18:10
5
Solved
I am new to AWS with python. I came across boto3 initially, later somone suggested cdk. What is the difference between aws cdk and boto3?
Woo asked 4/5, 2021 at 4:47
2
Solved
Problem with SNS
I'm currently using the python boto3 library for SNS (e.g. to create topics, subscribe to topics, send SNS to topics). When I use either a Resource or a Client, I have to specify ...
Gerard asked 8/9, 2016 at 15:45
4
The below code is for getting the regions.
import boto3
ec2 = boto3.client('ec2', 'region-name')
print(ec2.describe_regions())
On executing this code on my machine, I'm getting this error.
botoco...
Sowens asked 24/8, 2020 at 8:40
0
Trying to fasten the direct transfer process of files/objects from one AWS S3 object storage to another where both have different credential.
I tried to follow the code given on below link but its ...
Wallacewallach asked 31/7, 2024 at 16:24
13
Solved
What I want to achieve
To scrape an website using AWS Lambda and save the data on S3.
The issues I'm having
When I execute Lambda, the following error message appears.
{ "errorMessage": ...
Lukasz asked 6/6, 2023 at 12:10
3
Solved
AWS CLI provides aws s3 sync command to sync data between 2 locations.
Is there an equivalent command in boto3?
I can't find this kind of command in boto3 documentation.
Piranha asked 19/5, 2022 at 9:44
4
Hi need to transfer a file to ec2 machine via ssm agent. I have successfully installed ssm-agent in ec2 instances and from UI i am able to start session via "session-manager" and login to...
Holystone asked 26/11, 2020 at 7:25
2
I’m trying to get a list of the tables from a database in my aws data catalog. I’m trying to use boto3. I’m running the code below on aws, in a sagemaker notebook. It runs forever (like over 30 min...
Heisser asked 7/8, 2019 at 20:1
5
Please check below is the screenshot it is having problem. Aws credentials are configured correctly and its working fine when we use separately in boto3 but in SAM lambda function trigger it gettin...
6
I am trying to write a python script that uses watchdog to look for file creation and upload that to s3 using boto3. However, my boto3 credentials expire after every 12hrs, So I need to renew them....
Mediate asked 3/9, 2020 at 13:16
2
I'm trying to compress the all files keeping the same directory structure that are in the directory on the S3 bucket and put that zip on the S3 bucket.
Unpacking a zip file from the S3 bucket to S...
Bensky asked 3/5, 2020 at 21:52
6
Solved
I need to retrieve an public object URL directly after uploading a file, this to be able to store it in a database.
This is my upload code:
s3 = boto3.resource('s3')
s3bucket.upload_file(filepat...
Write asked 4/2, 2018 at 13:29
5
I can see:
s = boto3.client('s3')
print(type(s))
prints
<class 'botocore.client.S3'>
But if I try
print(botocore.client.S3)
I get
AttributeError: module 'botocore.client' has no a...
Schlegel asked 30/6, 2018 at 21:47
7
Solved
I want to use django-storages to store my model files in Amazon S3 but I get Access Denied error. I have granted the user almost all S3 permission PutObject, ListBucketMultipartUploads, ListMultipa...
8
I am trying to read some logs from a Hadoop process that I run in AWS. The logs are stored in an S3 folder and have the following path.
bucketname = name
key = y/z/stderr.gz
Here Y is the cluster ...
Heterochromous asked 15/12, 2016 at 9:46
2
Looking at the man page for list-secrets, there is no special options to show deleted or not. It does not list deleted secrets. However, the output definition includes a "DeletedDate" tim...
Emmer asked 27/11, 2020 at 13:31
1
I am confused how AWS boto3 and access key works.
I have set up an IAM user w/ poweruser and programmatic access. I entered the access key and access secret key into aws configure.
In my python s...
Selfeducated asked 22/9, 2017 at 12:39
6
I got the following error when trying to install boto3 from python on my mac
pip3 install boto
Looking in indexes: https://pypi.org
ERROR: Could not find a version that satisfies the requirement bo...
3
Solved
I'm not sure how to display the name of my instance in AWS EC2 using boto3
This is some of the code I have:
import boto3
ec2 = boto3.resource('ec2', region_name='us-west-2')
vpc = ec2.Vpc("vpc-2...
Embrey asked 12/1, 2016 at 19:2
0
I'm looking to change some Python 3 code which currently copies an SSE-C encoded file from one S3 bucket to another. On the target S3 bucket, the file will be stored in Glacier Flexible Retrieval f...
Charmian asked 13/4, 2024 at 11:45
0
I'm basically following the last code from this thread Is there any faster way for downloading multiple files from s3 to local folder?.
I adapted it to my problem which is extract files from s3 int...
Reest asked 4/4, 2024 at 14:38
4
While running the following code:
import boto3
BUCKET = 'bwd-plfb'
s3 = boto3.client('s3',use_ssl = False)
resp = s3.list_objects_v2(Bucket = BUCKET )
s3.download_file(BUCKET,'20171018/OK/OK_Al...
Hague asked 27/12, 2017 at 15:38
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
1 Next >
© 2022 - 2025 — McMap. All rights reserved.