Questions tagged [boto]
boto is an open-source Python Interface to Amazon Web Services
boto
2,367
questions
-2
votes
0
answers
37
views
How to Decrypt Windows EC2 password that was encrypted with a OpenSSH private key (3072 bit) using Python? [closed]
Although there were couple of article that addresses the Decrypting of Windows EC2 password in Python.
Decrypting Windows EC2 password in Python
How to decrypt Windows EC2 instance password that was ...
0
votes
1
answer
27
views
boto 2.49.0 unable to load ECS Fargate task role credentials from instance metadata
I am working on getting a legacy application up and running. It is using Python 2.7, I have managed to get it Dockerized and deployed to ECS using Fargate.
However the legacy code is using boto 2.49.0 ...
2
votes
0
answers
103
views
EOF occurred in violation of protocol (_ssl.c:2426)
I am trying to get inference from a deployed pretrained model on Sagemaker notebook environment. While executing the below line of code,
response = predictor.predict(serialized_data)
I am receiving an ...
0
votes
0
answers
172
views
Amazon Bedrock - security token included in the request is invalid
I'm trying to invoke a ML model with amazon bedrock, I verified that I used the correct credintials to connect to my AWS accout, i imported boto3, I even tried to list my S3 buckets and it worked. I ...
0
votes
0
answers
12
views
Different shaped responses for generate_presigned_post
My application's deployed across 2 regions, and calling generate_presigned_post from the two regions returns different response shapes. The first returns:
{
"url": "https://app-1-...
0
votes
2
answers
449
views
retrieveAndGenerate Syntax Error: Unknown parameter generationConfiguration or retrievalConfiguration (Claude-v3, Amazon Bedrock)
I am trying to retrieve and generate response from knowledge base use claude-v3 model. To do so I followed the boto3 documentation and Blog Post on Amazon and wrote this method:
def ...
0
votes
1
answer
625
views
ERROR - Runtime.ImportModuleError: Unable to import module 'main': cannot import name 'DEPRECATED_SERVICE_NAMES' from 'botocore.docs'
I'm supporting a lambda project (python 3.8) and when I run the command "sam local invoke LambdaFunction --event events/get_users.json", it gives the following error
`Invoking main....
1
vote
0
answers
41
views
botocore >= 1.28.0 slower in multithread application
The official Boto3 docs recommends creating a new resource per thread: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html#multithreading-or-multiprocessing-with-resources
...
0
votes
1
answer
91
views
How to set timeout and retry strategy when I enrypt/decrypt data using python aws_encryption_sdk?
I'm using aws_encryption_sdk to encrypt and decrypt data. Once we hit an issue and our process stuck for ~24 hours. One of the hypotheses was that there was a problem with string value decryption, ...
1
vote
1
answer
164
views
How to save logs, to S3Boto3Storage, with Django Logging
I need to save my logs to a file on dedicated storage (using S3BotoStorage). I haven't found any working solution yet. Does anyone know how to make it work? I need to incorporate something similar to ...
1
vote
1
answer
94
views
Asyncio with boto and for range?
I'm trying first time the asyncio botocore implementation. However, I'm quite sure I'm not getting the expected asynchronicity, likely due to my own lack of experience with it. :)
The goal of the ...
0
votes
0
answers
25
views
AWS::SNS::Subscription not created by moto by CloudFormation.create_stack
I have following CloufFormation template
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ServiceName:
Default: test
Type: String
Resources:
DynamoDBTable:
Properties:
...
0
votes
2
answers
53
views
Lookup Key from S3 Bucket using Boto
I've taken a script written by Paul Davies about reingesting Splunk Logs from the AWS Cloud.
The
When my logs have failed to process in Kinesis Firehose they get placed in a backup S3 bucket. The ...
0
votes
0
answers
39
views
Sending data from LAMBDA FUNCTION to AWS IOT TWIN MAKER
So I wanted to send data from Lambda to aws iot twin maker however I have getting some errors. Here, is my code:
import json
import boto3
iot_twin_maker_client = boto3.client('iottwinmaker')
def ...
1
vote
2
answers
517
views
get-log-events returns only a few results of many
I am logging to CloudWatch from a python lambda. In the AWS console I can see several hundred log entries, but if I try to use get-log-events from either a Python Boto call, or through the AWS CLI I ...