Moving to-the-cloud

Preview:

Citation preview

Moving to the CloudYou read the abstract, right?

$ whoamidave-harris$ ▮

+++

=

aws-elasticbeanstalk-amzn-2016.03.3.x86_64-docker-pv-201608240039

aws-elasticbeanstalk-

amzn-2016.03.3.x86_64-

docker-pv-201608240039

Dave’s big ol’ list o’ to-do’sDockerize

RDS PostgreSQL

EC2

Travis

Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.

Source: https://www.docker.com/what-docker

1. install Docker2. add a Dockerfile

3. build your container4. run an instance of your container

5. debug

the run down

1. install Docker

2. add a Dockerfile

3. build your container `docker build -t test-tracker .`

4. run an instance of your container`docker run -p 6379:80 test-tracker`

5. debug`Error: connect ECONNREFUSED 127.0.0.1:5432`

`docker run -p 6379:80 -e postgres://dharris:heycoolpasswordbrosef@someplaceonaws.us-east-1.rds.amazonaws.com:5432/tablehockeytracker tablehockeytracker`

Dave’s big ol’ list o’ to-do’sDockerize

RDS PostgreSQL

EC2

Travis

Dave’s big ol’ list o’ to-do’sDockerize

RDS PostgreSQL

EC2

Travis

CloudWatch

Dave’s big ol’ list o’ to-do’sDockerize

RDS PostgreSQL

EC2

Travis

Elastic Beanstalk

Simple Storage SomethingsomethingService

Identity and Access Management

travis encrypt --add secret_access_key

Dave’s big ol’ list o’ to-do’sDockerize

RDS PostgreSQL

Travis

Elastic Beanstalk

Hooray! We’re done!

http://thtdeliver.ff8mv5rxgd.us-east-1.elasticbeanstalk.com/http://superfakedontgohere.com/

Simple Monthly Calculator

https://calculator.s3.amazonaws.com/index.html

API Gateway Lambda

API Gateway

Lambda

The Open Guide to Amazon Web Serviceshttps://github.com/open-guides/og-aws

AWS Documentationhttps://aws.amazon.com/documentation/

@CodeBaboondavid.harris@d2l.com

https://github.com/CodeBaboon/table-hockey-tracker