Questions tagged [boto3]
Boto 3 - The Amazon Web Services (AWS) SDK for Python
boto3
7,822
questions
0
votes
0
answers
23
views
Unable to use implicit IAM/role-based auth when using Boto3 inside Docker on EC2
I've run into a frustrating edge case that I'm now having to either introduce custom logic to work around or solve properly.
I'm running a Django application inside a Docker container on EC2. I'm ...
0
votes
0
answers
37
views
Unable to upload images to S3 using boto3
I am using fastapi to upload images to my s3 bucket. first i tried presigned url method to upload images from postman and it is working fine. But when i try to directly upload image(size ~7kb) from ...
0
votes
1
answer
26
views
How to create 1000s of tables in redshift serverless automatically using boto3?
I have an S3 bucket which contains 1000s of folders which are basically table_names and those contains parquet files.
I'm trying to create tables with that schema in redshift.
I'm using redshift-data ...
0
votes
0
answers
9
views
Access token fetched from AWS Cognito oauth api endpoint is invalid when utilized by boto3
Having been confused by AWS Congito for weeks... Are there any difference between access tokens retrieved by /oauth2/token and boto3? If so, how can my backend use an access token passed from my ...
0
votes
1
answer
23
views
AWS Route Calculator API/ Here Maps
I am using AWS Location Services Route Calculator to determine travel time and travel distance of several origin destination pairs. The code is working but it is not reflecting travel delay due to ...
0
votes
0
answers
45
views
AWS Q Business chat_sync api issue with python boto3
I am trying to implement aws business q apis inside my own application. I am following below document provided by aws but it's not working for chat_sync function.
https://docs.aws.amazon.com/amazonq/...
1
vote
0
answers
44
views
List all objects in an S3 bucket on MinIO
I have a bucket with about 5'000'000 objects inside (as shown from the MinIO web interface).
I need to traverse every single object (and later on do some processing on them).
To test the functionality,...
0
votes
0
answers
26
views
How to get resources' tags by their IDs ( not ARNs ) using boto3?
I try to collect stats from AWS CostExplorer using boto3 lib.
I've used method get_cost_and_usage_with_resources ( see details: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/...
0
votes
0
answers
15
views
Airflow error while creating EMR cluster via DAG
I am looking to create an EMR cluster via airflow DAG using EmrCreateJobFlowOperator using a role called dev-emr-ec2-profile-role for jobFlow. This role is used to provision EMR cluster via Terraform ...
0
votes
0
answers
27
views
Slow s3 upload when trying to upload multiple files in parallel with aioboto3
I need to upload multiple files to S3 in parallel. The script I use to upload:
import asyncio
from httpx import AsyncClient
async def upload():
async with AsyncClient(base_url="http://...
0
votes
2
answers
15
views
Celery with RabbitMQ and Eventlet Not Working with Boto3 Client & Timestream
I am trying to use Celery with RabbitMQ and Eventlet to handle asynchronous tasks in my Python application. One of my tasks involves uploading files to an S3 bucket using the Boto3 client. However, I ...
0
votes
1
answer
35
views
AWS boto3 can't create a bucket - Python
Iam facing an issue that I my code is not successfully to create bucket in AWS using boto3 python. Below my code
import boto3
s3 = boto3.resource('s3')
def create_bucket(bucket_name, region='us-east-...
0
votes
0
answers
8
views
Set the SMS priority in code (between transactional and promotional)
I use AWS SNS to send One-Time Passcodes to users with this code:
var AWS = require('aws-sdk');
AWS.config.update({region: 'eu-west-1'});
const sns = new AWS.SNS({apiVersion: '2010-03-31', ...
0
votes
1
answer
29
views
boto3 copy using SourceClient and access keys results in "AccessDenied"
I am trying to determine if using boto3 copy with a SourceClient will work for my current use case. The documentation mentions the SourceClient parameter "The client to be used for operation that ...
0
votes
0
answers
34
views
Botocore.exceptions.DataNotFoundError: unable to load data points for : glue
I’m working on migrating aws glue etls from v2 to v4.
While creating glue client i’m getting error botocore.exception data not found: unable to load data points error.
Failing at botocore—> loaders....