Skip to content

This project helps to deploy a simple python application that return the timestamp and user IP address upon hitting a URL

Notifications You must be signed in to change notification settings

ifaakash/whats-my-ip-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda IP & Timestamp API

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.


Tech Stack

  • AWS Lambda (Python)
  • API Gateway (HTTP API)
  • Terraform
  • AWS IAM
  • Optional: GitHub Actions for CI/CD

What This API Does

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
  1. Review execution plan:
    terraform plan
  2. Apply changes:
    terraform apply
  3. After successful deployment, access the application at the API Gateway URL:
    terraform output api_gateway_url

Project Structure

.
├── main.tf          # Main configuration
├── variables.tf     # Input variables
├── outputs.tf       # Output definitions
└── README.md        # This file

About

This project helps to deploy a simple python application that return the timestamp and user IP address upon hitting a URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published