Are you looking to move to the cloud, but aren’t sure quite where to start? Are you already using AWS, and are looking for ways to simplify some of your workflows? If you answered “yes” (or even “maybe”) to either one of those questions, this session / hands-on workshop is for you. We’re going to take you through using Amazon Lightsail, an AWS service that provides the quickest way to get started in the cloud, to deploy and scale an application on AWS.
2. Who am I
•Developer Advocate for Amazon Lightsail
•But, I’m not a developer
•Based out of Portland, Oregon
•Previous: Docker, Puppet (Labs), VMware, Microsoft,
Intel, HP(E)
•@mikegcoleman (but I tweet about soccer, a lot)
3. What you will learn
After today you will be understand how to:
• What is Amazon Lightsail
• When do you choose Lightsail
• Launch a monolithic application on Lightsail
• Break out app components
• Scale an application using snapshots and
a load balancer
4. 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
5. What you need to set up an instance in AWS:
Launch
VM
Attach
SSD storage
Manage
IAM
Create
Security Groups
Manage
SSH Keys
Go!
Under the hood
6. Jumpstart or Build Your Own with Blueprints
Preconfigured Applications
and Dev Stacks
Operating System Only
7. 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
10. 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
15. 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
19. Scaling the front end with snapshots
•Front end is stateless
•Create Lightsail snapshot
•Deploy multiple instances from snapshot
•Create Lightsail load balancer
•And front-end instances to Load balancer
20. Lightsail load balancers
•Simplified Amazon load
balancer implementation
•Set up in a few clicks
•Handles http / https traffic
•Balances across ports 80
and 443