Ask Question

Boto 3 - The Amazon Web Services (AWS) SDK for Python

6,687 questions

0votes0answers6views

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.... user avatar AndrewK

  • 11
0votes1answer10views

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 ... user avatar ambb

  • 29
0votes0answers10views

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 ... user avatar sk01

  • 35
1vote0answers18views

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, ... user avatar shane

  • 11
0votes1answer18views

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 ... user avatar H_H

  • 3
0votes1answer19views

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(... user avatar rfg

  • 1,267
0votes0answers11views

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 ... user avatar AMIT SINGH

  • 1
1vote0answers31views

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 ... user avatar Mitchell Privett

  • 36
1vote0answers13views

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 ... user avatar awab-dogsbody

  • 13
0votes3answers59views

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: ... user avatar ninsignares

  • 9
1vote0answers28views

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.... user avatar mangotango

  • 135
0votes1answer21views

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: "... user avatar BoiteNoire

  • 47
0votes0answers10views

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 ... user avatar Naxi

  • 974
0votes0answers23views

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 ... user avatar prem Rexx

  • 69
0votes1answer14views

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 ... user avatar prem Rexx

  • 69

153050per page

1 2 3 4 5446