I am trying to use aurora serverless data API feature to reduce the db connection time in my serverless application. But building client is taking time.
I would like to call rds HTTP service via lambda to get/post data.
I came across some was posts but I am still getting error, missing authentication token
https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_ExecuteStatement.html
My sample request is below for MySQL. I have run this via AWS cloud shell.
curl --location --request POST 'https://rds-data.us-west-2.amazonaws.com/Execute' \--header 'Content-Type: application/json' \--data-raw '{"continueAfterTimeout": false,"database": "demo_data","includeResultMetadata": true,"parameters": [],"resourceArn": "arn:aws:rds:us-west-2:*******:cluster:rds-serverless","schema": "demo_data","secretArn": "arn:aws:secretsmanager:us-west-2:******:secret:serverless/user_u-cMt2Q4","sql": "select now()"}'