Template that will create the following:
- API Gateway endpoint:
- A single root method, accepting
POST
requests only with Lambda proxy integration to a function.
- A single root method, accepting
- In-line Lambda function echoing back requesting users IP address to API Gateway requests:
- IAM role for Lambda allowing CloudWatch logs access.
- Permissions for Lambda that allow API Gateway endpoint to successfully invoke function.
- CloudWatch logs group for Lambda, with 90 day log retention.
After standing up the template, you should be able to curl a POST
request to the URL listed as the apiGatewayInvokeURL
output value.