https://github.com/csullivannet/nginx-staticfile
A simple http server (plus a variant with an ELB) provisioned with CloudFormation
https://github.com/csullivannet/nginx-staticfile
aws cloudformation docker nginx
Last synced: 2 months ago
JSON representation
A simple http server (plus a variant with an ELB) provisioned with CloudFormation
- Host: GitHub
- URL: https://github.com/csullivannet/nginx-staticfile
- Owner: csullivannet
- Created: 2018-05-12T15:42:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T16:09:10.000Z (about 8 years ago)
- Last Synced: 2025-04-23T21:09:57.817Z (about 1 year ago)
- Topics: aws, cloudformation, docker, nginx
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
A sample template for CloudFormation to deploy a simple nginx server that serves a static web page.
### Assumptions
- [aws cli is installed](https://docs.aws.amazon.com/cli/latest/userguide/installing.html "Install AWS CLI") and configured with your AWS account
- You have a set of [ssh keys](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html "Creating EC2 Key Pairs") named "*MyKeys*"
- You have not modified the default VPC/subnets
### How-to deploy
Run `./deploy.sh (deploy-http|stop-http|deploy-elb|stop-elb)`
- deploy-http: Will start a single EC2 http instance to serve index.html and return the DNS name of that instance
- stop-http: Deletes the stack created by the above command
- deploy-elb: Will start two EC2 http instances behind an ELB to serve index.html and return the DNS name of that load balancer
- stop-elb: Stops the stack created by the above command
### How to update
- Update index.html as necessary and build the image on Docker Hub (this repo is automatically built here: docker.com/r/sparkd/nginx-staticfile/)
- Redeploy the stack