Simple lambda function that will make an AWS sig4 signed request to the specified URL.
It can be useful for making authenticated calls to your API gateway in response to various events.
Follow these steps to create a zip that can be uploaded to lambda.
- remove the node_modules folder if it exists
rm -rf node_modules - install only production dependencies
npm install --production - create the zip
./zipit.sh
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"method": {
"type": "string"
}
},
"required": [ "url" ]
}