Amazon API Gateway data validation

Amazon API Gateway REST API → AWS Lambda

Creates an Amazon API Gateway with request validation, rejecting invalid requests before AWS Lambda invocation using model schema validation.

The data model is declared in the API Gateway resource. The Lambda function then requires the request body to be validated against this model.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-data-validation-tf

Deploy

terraform initterraform apply


Testing

See the Github repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Makendran G

Makendran G

Cloud Support Engineer @ AWS

Follow on LinkedIn