by Mike Coleman, EC2 Developer Advocate - Lightsail, AWS
Whether you are launching a simple website or a scaled application, time to go live is a key consideration for your business. Amazon Lightsail is the easiest way to get started on AWS, letting you build and scale your infrastructure faster. In this session, we will walk you through how to use Lightsail to launch your application with a few clicks and scale it as needed for redundancy, traffic spikes, or intergalactic attack. With in-browser SSH and RDP access, easy server management, and in-console guidance, Lightsail provides all the tools needed for builders of all levels – no prior AWS experience required.
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
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
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
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