All Questions
Tagged with amazon-web-services boto3
4,676
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
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
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', ...
1
vote
1
answer
42
views
How to update nested attribute name for specific DynamoDB items
I use boto3 client for managing DynamoDB items. Let's assume that the item structure is the following:
{
"id": "item_id",
"name": "item_name",
"age&...
1
vote
1
answer
86
views
Getting "cannot schedule new futures after interpreter shutdown" error while using boto3.client download_file and upload_file functions
I am using boto3.client.download_file() and boto3.client.upload_file() functions, For python3.8 environment it's working fine, but after upgrading to python3.10, getting "RuntimeError: cannot ...
0
votes
0
answers
24
views
AWS Cost Usage for 6 months fields
Has any one worked on the AWS Cost and Usage?
We are using the get_cost_and_usage but there are product related fields which the api doesn't fetch. We are able to get blendedcost, unblendedcost, ...
2
votes
0
answers
33
views
AWS Cognito API Delay Across Regions?
I am creating a Cognito Pre Sign-up lambda trigger using Python 3.11. I have noticed there's a delay between when the AdminCreateUser response is returned and when the user is actually created. I ...