Skip to content

CloudFormation template and deploy that launches Sinatra on an ASG.

Notifications You must be signed in to change notification settings

lindyslewis/deploy_webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Webapp

deploy.sh

  • calls aws cloudformation create-stack
  • passes in the CloudFormation template JSON file

cloud_formation_template.json

  • LaunchConfig with UserData

  • UserData installs git

  • UserData clones this repo

  • UserData downloads and installs rvm

  • UserData installs Sinatra gem

  • UserData logs app.rb to rubyApp.log

  • ElasticLoadBalancer with instance port listening at 4567

  • ASG of size 2

  • Output ELB URL

app.rb

  • Gets the instance number using Net::HTTP.get(uri)
  • Outputs the instance number at the web root

About

CloudFormation template and deploy that launches Sinatra on an ASG.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published