SlideShare una empresa de Scribd logo
1 de 28
©2018,AmazonWebServices,Inc. oritsAffiliates. All rightsreserved
Amazon Lightsail
Deploying and scaling a Node.js app on Lightsail
Mike Coleman, Developer Advocate
@mikegcoleman
What you will learn
After today you will be able to:
• Launch an application on Lightsail
• Break out app components
• Scale an application using load balancer
Introduction to Amazon Lightsail
What do you want to run in the cloud?
Websites Apps eCommerce
Dev/Test Environments WordPress Simple Software
What you need to set up in AWS:
Launch
VM
Attach
SSD storage
Manage
IAM
Create
Security Groups
Manage
SSH Keys
Go!
Under the hood
Amazon Lightsail: Cloud made easy
• Bundled compute, storage, networking
• Fully configured server
• Low, predictable price
• Intuitive, global Lightsail console
• Easy growth path
• Access to AWS services
• Tailored API & CLI
What do Lightsail plans include?
CPU core(s) SSD block storage Networking, data transfer,
and Load Balancing
DNS management 1 Static IP/instance Access to AWS
services
Predictable pricing starting at $5 per month
Launch a virtual server in < 1 minute
Global resource view
Simple server management
One-click terminal access
Latest Features
10
global regions
8
languages
Windows
Server
Additional
block storage
Load
Balancers
When to choose Lightsail?
• Small-scale multi-tier apps
• Websites
• Web apps
• Testing environment
• Line-of-business software
• Large, multi-tier applications
(several dozens of instances)
• Anything requiring instances that
are workload optimized, highly
configurable, or resource
intensive
• E.g., Big data analytics, High performance
computing, Scientific computing
• Advanced networking
Demo
Lightsail Overview
Node / Express Web Front End
MongoDB back end
Phase 1:
• Deploy monolithic app into Lightsail MEAN
blueprint
Phase 2:
• Separate front end from Database
• Scale front end
• Deploy a Lightsail load balancer
The Application: Simple Todo List
Lightsail MEAN blueprint
• MEAN – Mongo, Express, Angular, Node
• Preconfigured Bitnami image includes
• MongoDB
• Node.JS
• Express
• AngularJS
• Apache
• Git
• PHP
• RockMongo
Getting our Application Running
• Create Lightsail instance
• Disable Apache
• Create user account in Mongo
• Clone Github repo
• Configure application environment variables
• Run the app
Demo
Monolithic Node App
Refining our application
Potential issues:
• Single point of failure
• Responding to increasing demand
• Database / web front end tied closely together
Solution:
• Separate database / web front end
• Created multiple front end instances
• Add a Lightsail load balancer
Lightsail load balancers
•Simplified Amazon load
balancer implementation
•Set up in a few clicks
•Handles http / https traffic
•Balances across ports 80
and 443
Scaling the front end
•Front end is stateless
•Create Lightsail snapshot
•Deploy multiple instances from snapshot
•Create Lightsail load balancer
•And front-end instances to Load balancer
Demo
Refining the app
Thanks!
Q & A
(at the genius bar)
But wait! There’s more . . .
Containers are the new(ish) hotness
• Greatly simplify developing and deploying
applications
• AWS has several great container offerings
• ECS
• EKS
• Fargate
• Getting started can be intimidating
• Pro tip: You don’t need an orchestrator on day
one
Docker containers on Lightsail
Easy to get started
• Use an OS only blueprint
• Install Docker and Docker Compose
• Copy over a Docker compose file
• docker compose up -d
• Profit
When you’re ready look at orchestration
Demo
Running the app with
containers

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Amazon DynamoDB - Auto Scaling Webinar - v3.pptx
Amazon DynamoDB - Auto Scaling Webinar - v3.pptxAmazon DynamoDB - Auto Scaling Webinar - v3.pptx
Amazon DynamoDB - Auto Scaling Webinar - v3.pptx
 
BDA308 Deep Dive: Log Analytics with Amazon Elasticsearch Service
BDA308 Deep Dive: Log Analytics with Amazon Elasticsearch ServiceBDA308 Deep Dive: Log Analytics with Amazon Elasticsearch Service
BDA308 Deep Dive: Log Analytics with Amazon Elasticsearch Service
 
Machine Learning: From Notebook to Production with Amazon Sagemaker
Machine Learning: From Notebook to Production with Amazon SagemakerMachine Learning: From Notebook to Production with Amazon Sagemaker
Machine Learning: From Notebook to Production with Amazon Sagemaker
 
Builders' Day - What's New on EC2
Builders' Day - What's New on EC2Builders' Day - What's New on EC2
Builders' Day - What's New on EC2
 
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
Rightsizing Your Silicon Design Environment: Elastic Clusters for EDA Workloa...
 
Train & Deploy ML Models with Amazon Sagemaker: Collision 2018
Train & Deploy ML Models with Amazon Sagemaker: Collision 2018Train & Deploy ML Models with Amazon Sagemaker: Collision 2018
Train & Deploy ML Models with Amazon Sagemaker: Collision 2018
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
 
Infrastructure Is Code with the AWS Cloud Development Kit (DEV372) - AWS re:I...
Infrastructure Is Code with the AWS Cloud Development Kit (DEV372) - AWS re:I...Infrastructure Is Code with the AWS Cloud Development Kit (DEV372) - AWS re:I...
Infrastructure Is Code with the AWS Cloud Development Kit (DEV372) - AWS re:I...
 
Intro To Serverless Application Architecture: Collision 2018
Intro To Serverless Application Architecture: Collision 2018Intro To Serverless Application Architecture: Collision 2018
Intro To Serverless Application Architecture: Collision 2018
 
re:Invent 2018: AI/ML Services
re:Invent 2018: AI/ML Servicesre:Invent 2018: AI/ML Services
re:Invent 2018: AI/ML Services
 
What's New with Amazon DynamoDB
What's New with Amazon DynamoDBWhat's New with Amazon DynamoDB
What's New with Amazon DynamoDB
 
AWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best Practices
 
The Power of Amazon EC2 Spot Instances Best Practices and Real-World Use Cases
The Power of Amazon EC2 Spot Instances Best Practices and Real-World Use CasesThe Power of Amazon EC2 Spot Instances Best Practices and Real-World Use Cases
The Power of Amazon EC2 Spot Instances Best Practices and Real-World Use Cases
 
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
 
Getting Started with AWS for Developers: Collision 2018
Getting Started with AWS for Developers: Collision 2018Getting Started with AWS for Developers: Collision 2018
Getting Started with AWS for Developers: Collision 2018
 
Accelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAccelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMaker
 
如何以 serverless 架構打造快速回應客戶需求的零售情境 (Level: 200)
如何以 serverless 架構打造快速回應客戶需求的零售情境 (Level: 200)如何以 serverless 架構打造快速回應客戶需求的零售情境 (Level: 200)
如何以 serverless 架構打造快速回應客戶需求的零售情境 (Level: 200)
 
SRV319 Amazon EC2 Foundations
SRV319 Amazon EC2 FoundationsSRV319 Amazon EC2 Foundations
SRV319 Amazon EC2 Foundations
 
雲端推動的人工智能革命
雲端推動的人工智能革命雲端推動的人工智能革命
雲端推動的人工智能革命
 
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
Running Lean Architectures: How to Optimize for Cost Efficiency (ARC202-R2) -...
 

Similar a Simple Cloud with Amazon Lightsail

Similar a Simple Cloud with Amazon Lightsail (20)

Simple Cloud with Amazon Lightsail
Simple Cloud with Amazon LightsailSimple Cloud with Amazon Lightsail
Simple Cloud with Amazon Lightsail
 
Jumpstarting Your Cloud Journey with OSS on Amazon Lightsail
 Jumpstarting Your Cloud Journey with OSS on Amazon Lightsail Jumpstarting Your Cloud Journey with OSS on Amazon Lightsail
Jumpstarting Your Cloud Journey with OSS on Amazon Lightsail
 
Simple Cloud with Amazon Lightsail - Mike Coleman
Simple Cloud with Amazon Lightsail - Mike ColemanSimple Cloud with Amazon Lightsail - Mike Coleman
Simple Cloud with Amazon Lightsail - Mike Coleman
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailDeploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
 
Agile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic BeanstalkAgile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic Beanstalk
 
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Escaping the yellow bubble - rewriting Domino using MongoDb and AngularEscaping the yellow bubble - rewriting Domino using MongoDb and Angular
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
 
Agile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic BeanstalkAgile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic Beanstalk
 
Customer Sharing: iCook - Continuous Deployment with AWS
Customer Sharing: iCook - Continuous Deployment with AWSCustomer Sharing: iCook - Continuous Deployment with AWS
Customer Sharing: iCook - Continuous Deployment with AWS
 
Azure Functions Real World Examples
Azure Functions Real World Examples Azure Functions Real World Examples
Azure Functions Real World Examples
 
How to build a SaaS solution in 60 days
How to build a SaaS solution in 60 daysHow to build a SaaS solution in 60 days
How to build a SaaS solution in 60 days
 
Serverless: State Of the Union
Serverless: State Of the UnionServerless: State Of the Union
Serverless: State Of the Union
 
Serverless - State Of the Union
Serverless - State Of the UnionServerless - State Of the Union
Serverless - State Of the Union
 
Tech Talk on Cloud Computing
Tech Talk on Cloud ComputingTech Talk on Cloud Computing
Tech Talk on Cloud Computing
 
Deploy, manage, and scale your apps
Deploy, manage, and scale your appsDeploy, manage, and scale your apps
Deploy, manage, and scale your apps
 
(DVO201) Scaling Your Web Applications with AWS Elastic Beanstalk
(DVO201) Scaling Your Web Applications with AWS Elastic Beanstalk(DVO201) Scaling Your Web Applications with AWS Elastic Beanstalk
(DVO201) Scaling Your Web Applications with AWS Elastic Beanstalk
 
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
 
Moving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloudMoving complex enterprise ecommerce systems to the cloud
Moving complex enterprise ecommerce systems to the cloud
 
How to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless EditionHow to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless Edition
 
Developing in the Cloud
Developing in the CloudDeveloping in the Cloud
Developing in the Cloud
 
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar SeriesGetting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series
 

Más de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Simple Cloud with Amazon Lightsail

  • 1. ©2018,AmazonWebServices,Inc. oritsAffiliates. All rightsreserved Amazon Lightsail Deploying and scaling a Node.js app on Lightsail Mike Coleman, Developer Advocate @mikegcoleman
  • 2. What you will learn After today you will be able to: • Launch an application on Lightsail • Break out app components • Scale an application using load balancer
  • 4. What do you want to run in the cloud? Websites Apps eCommerce Dev/Test Environments WordPress Simple Software
  • 5. What you need to set up in AWS: Launch VM Attach SSD storage Manage IAM Create Security Groups Manage SSH Keys Go! Under the hood
  • 6. Amazon Lightsail: Cloud made easy • Bundled compute, storage, networking • Fully configured server • Low, predictable price • Intuitive, global Lightsail console • Easy growth path • Access to AWS services • Tailored API & CLI
  • 7. What do Lightsail plans include? CPU core(s) SSD block storage Networking, data transfer, and Load Balancing DNS management 1 Static IP/instance Access to AWS services
  • 9. Launch a virtual server in < 1 minute
  • 14. When to choose Lightsail? • Small-scale multi-tier apps • Websites • Web apps • Testing environment • Line-of-business software • Large, multi-tier applications (several dozens of instances) • Anything requiring instances that are workload optimized, highly configurable, or resource intensive • E.g., Big data analytics, High performance computing, Scientific computing • Advanced networking
  • 16. Node / Express Web Front End MongoDB back end Phase 1: • Deploy monolithic app into Lightsail MEAN blueprint Phase 2: • Separate front end from Database • Scale front end • Deploy a Lightsail load balancer The Application: Simple Todo List
  • 17. Lightsail MEAN blueprint • MEAN – Mongo, Express, Angular, Node • Preconfigured Bitnami image includes • MongoDB • Node.JS • Express • AngularJS • Apache • Git • PHP • RockMongo
  • 18. Getting our Application Running • Create Lightsail instance • Disable Apache • Create user account in Mongo • Clone Github repo • Configure application environment variables • Run the app
  • 20. Refining our application Potential issues: • Single point of failure • Responding to increasing demand • Database / web front end tied closely together Solution: • Separate database / web front end • Created multiple front end instances • Add a Lightsail load balancer
  • 21. Lightsail load balancers •Simplified Amazon load balancer implementation •Set up in a few clicks •Handles http / https traffic •Balances across ports 80 and 443
  • 22. Scaling the front end •Front end is stateless •Create Lightsail snapshot •Deploy multiple instances from snapshot •Create Lightsail load balancer •And front-end instances to Load balancer
  • 24. Thanks! Q & A (at the genius bar)
  • 25. But wait! There’s more . . .
  • 26. Containers are the new(ish) hotness • Greatly simplify developing and deploying applications • AWS has several great container offerings • ECS • EKS • Fargate • Getting started can be intimidating • Pro tip: You don’t need an orchestrator on day one
  • 27. Docker containers on Lightsail Easy to get started • Use an OS only blueprint • Install Docker and Docker Compose • Copy over a Docker compose file • docker compose up -d • Profit When you’re ready look at orchestration
  • 28. Demo Running the app with containers