An open API service indexing awesome lists of open source software.

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

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