A simple serverless API built with AWS Lambda + API Gateway that returns the timestamp and public IP address of the client making the request. Infrastructure is managed via Terraform and deployed with a single command.
- AWS Lambda (Python)
- API Gateway (HTTP API)
- Terraform
- AWS IAM
- Optional: GitHub Actions for CI/CD
When you hit the API endpoint:
curl https://<your-api>.execute-api.<region>.amazonaws.com/<stage>/
## Usage
1. Clone this repository
2. Initialize Terraform:
```bash
terraform init
- Review execution plan:
terraform plan
- Apply changes:
terraform apply
- After successful deployment, access the application at the API Gateway URL:
terraform output api_gateway_url
.
├── main.tf # Main configuration
├── variables.tf # Input variables
├── outputs.tf # Output definitions
└── README.md # This file