- Newest
- Most votes
- Most comments
Hello,
Can you check if you have upgraded boto3 - https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
?
Thanks!
I am using this within a Lambda Function, in the US-WEST-1 region, with python 3.9 as runtime setting. As below. Does this mean that AWS has not updated boto3 within Lambda Functions code? This seems nothing that I can control on my end, no?
import boto3
import botocore
from botocore.exceptions import ClientError
client = boto3.client('timestream-write', region_name='us-east-1')
try:
response = client.write_records(DatabaseName=database,
TableName=table,
Records=records,
CommonAttributes=common_attributes)
Edited by: JH1234 on Dec 3, 2021 8:12 AM
I checked, and indeed AWS Lambda is using an older version of boto3 in both us-west-1 and us-east1: 1.18.55
When can I expect this to be updated? These are features that have been annonced and I am surprised this isn't implemented within the AWS infrastructure itself yet!
Looked like you have reported this issue in Lambda forums https://forums.aws.amazon.com/message.jspa?messageID=1001959#1001959
One suggestion to unblock your use case could be to create a Lambda layer that has recent version of boto3 - Reference: https://github.com/keithrozario/Klayers
Thanks!
this worked, thank you very much! It's at least a temporary fix until Lambda catches up with its own boto3 library.
I'm glad also that my code was correct. thanks for the help.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 10 months ago
- How do I troubleshoot the errors I get when I use AWS CloudFormation to create Route 53 record sets?AWS OFFICIALUpdated 10 months ago