Questions Tagged [Boto3]
6,687 questions
0 votes
0 answers
6 views

AWS Boto3 SQS endpoint URL issue

We have a Lambda function that sends messages to SQS queue. We are using boto3. We have built a new environment and Lambda is running in a VPC on a private subnet. The VPC end point is com.amazonaws....
0 votes
1 answer
10 views

boto3 : Create a S3 bucket with ACLs disabled

I am trying to create a new bucket on S3 using boto3 and python. However, I want its ACLs to be disabled. I have tried the following code, but ACLs are still enabled. How can I disable ACLs using ...
  • 29
0 votes
0 answers
10 views

django file field not saving file to s3 bucket folder when updating

I am uploading file to s3 bucket in the below path: bucket/folder/{custom_id}/file I have the below method which I am calling in Model. In DRF Post method, the file is getting saved correctly to s3 ...
  • 35
1 vote
0 answers
18 views

An error occurred (AccessDenied) when calling the PutPublicAccessBlock operation: Access Denied

I'm trying to implement PutPublicAccessBlock operation on S3 bucket inside my account. My code sample as below. s3Client.put_public_access_block( Bucket= name, ...
  • 11
0 votes
1 answer
18 views

how to edit/rename/remove keys and values in multiple json files from aws s3 in python

I have JSON files in a folder and (sub folders: Folder A has sub folder B and C and so on) within AWS S3 bucket and I would like to change the name of the keys of all the JSON files and remove some ...
  • 3
0 votes
1 answer
19 views

ssm is not available after instance_running waiter is done

I want to start a stopped ec2 instance and run a bash script on it using ssm. Here's the code I have: import boto3 instanceid = 'i-123456789' ec2 = boto3.resource('ec2') instance = ec2.Instance(...
  • 1,267
0 votes
0 answers
11 views

Redirect multiple print output to single file in json format using python

I have used boto3 to read and print metadata from s3 bucket. As a next step i want to redirect the printed output in a json file and write the json file to s3 bucket. The printed output has 2 fields ...
1 vote
0 answers
31 views

An error occurred (UnrecognizedClientException) when calling the UpdateItem operation: The security token included in the request is invalid

I'm getting this error in my cloudwatch logs botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the UpdateItem operation: The security token included in the ...
1 vote
0 answers
13 views

AWS Boto3 EKS - how to check for cluster updates

This is a very specific question but does anyone know if there's boto3 EKS method that ...
0 votes
3 answers
59 views

How to invoke Lambda function using boto3 and passing parameters

This time I'm looking for passing parameters to lambda invoke using boto3.client instead of make a request to API gateway. Assume I developed a lambda function that can be invoked through api get. ie: ...
1 vote
0 answers
28 views

Boto3 timeout troubleshooting

I am trying to troubleshoot a situation. I am initiating a Boto3 client like this: s3_client = boto3.client('s3') Then I am iterating over a number of files and uploading them using: s3_client....
0 votes
1 answer
21 views

Boto3 version mismatch seemingly causing error when using create_function() method with AWSLambda

I am having an issue creating a AWS Lambda function programmatically. The error I get is botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "...
0 votes
0 answers
10 views

How to resolve boto3 double encoding "/" character in s3 key?

I have an s3 key which looks like below - s3://bucket-name/naxi.test some/other value I am using urllib.parse to quote it. s3_key=quote(s3_path,safe=' ') This gives me s3://bucket-name/naxi.test ...
  • 974
0 votes
0 answers
23 views

An error occurred (ValidationError) when calling the PutMetricAlarm operation: Invalid metrics list

i'm facing below issue while creating alarm by using put_metric_alarm function in Python [ERROR] ClientError: An error occurred (ValidationError) when calling the PutMetricAlarm operation: Invalid ...
0 votes
1 answer
14 views

Put_metric_alarm - How to use comparison operator with "Equal to Threshold" in AWS - Python Boto3

Currently, I can see only below possible values for the Comparision parameter, is it possible for EqualToThreshold to be used as comparison operator? GreaterThanOrEqualToThreshold GreaterThanThreshold ...

15 30 50 per page
1
2 3 4 5
…
446
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest