Deploy a Container Web App on Amazon Lightsail
TUTORIAL
Introduction
Follow step-by-step instructions to build and deploy a container-based web application using Amazon Lightsail
Overview
In this tutorial, we will take you through deploying your existing containerized web applications on Amazon Lightsail.
Lightsail is an easy-to-use virtual private server (VPS) provider that offers you everything you need to build an application or website, on a cost-effective, monthly plan.
What you will accomplish
In this tutorial, you will:
- Build your container and test the application locally
- Create a container service on Amazon Lightsail
- Deploy your container on Amazon Lightsail and test it
- Push a new version of your application
Prerequisites
Before starting this tutorial, you will need:
- An AWS account: If you don't already have one, follow the Setting Up Your AWS Environment getting started guide for a quick overview.
- AWS CLI: If don't have the AWS CLI already set up on your device, follow these installation instructions.
AWS experience
Beginner
Minimum time to complete
30–40 minutes
Cost to complete
Free Tier eligible
Requires
- AWS account with administrator-level access*
- Recommended browser: The latest version of Chrome or Firefox
*Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.
Last updated
March 18, 2024
Modules
This tutorial is divided into the following short modules. You must complete each module before moving to the next one.
- Prepare your container (10 minutes): Building and testing your app locally.
- Create a container service on Amazon Lightsail (10 minutes): Create the infrastructure to host your containers.
- Deploy your container on Amazon Lightsail (10 minutes): Upload and deploy your container.
- Deploy a new version of your application (10 minutes): Prepare and deploy a new version of your application.
- Clean up: In this last part of the tutorial, you learn how to clean up resources after you are done.