Skip to content

armyers/web-server-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-server-demo

Create the AWS infrastructure to implement a very simple web server that when queried returns the server IP, client IP and a precise timestamp (second resolution).

It uses terraform 0.13 (web-server-demo/tf-code) to create the following infrastructure:

  • VPC
  • public and private subnets
  • external ALB, listener and listener rules (service port 80)
  • target group
  • ASG with launch config
  • security groups for the external LB and the internal web server
  • ssh bastion server with a EIP

The web server code (web-server-demo/web-server) is written in Python 3 and is a very simple threaded http server. When queried with a GET request (any path will do), it returns:

  • requested path
  • server IP and port
  • Host header value
  • client IP and port
  • X-forwarded-for header
  • X-forwarded-proto header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published