I'm trying to make a simple Python Lambda that makes snapshots of our Elasticsearch database. This is done through Elasticsearch's REST API using simple HTTP requests.
However, for AWS, I have to sign these requests. I have a feeling it can be achieved through boto3
's low-level clients probably with generate_presigned_url
, but I cannot for the life of me figure out how to invoke this function correctly. For example, what are the valid ClientMethod
s? I've tried ESHttpGet
but to no avail.
Can anyone point me in the right direction?
There are several Python extensions to the requests library that will perform the SigV4 signing for you. I have used this one and it works well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With