This Terraform example demonstrates how to create a serverless React application that utilizes AWS API Gateway to invoke an AWS Lambda function. The API Gateway is configured to proxy GET requests to the Lambda function, which simply returns “Hello World.”

Terraform Infrastructure Definition

This section contains the actual Terraform infrastructure definition, which includes CORS configuration.

View Terraform Infrastructure Definition Gist

Lambda Function

This is the Python Lambda function code that will return “Hello World.”

View Lambda Function Gist ```