AWS Builder Center
Ship a Container, Skip the VPC: Run a Public Container on AWS for $7 a Month

Ship a Container, Skip the VPC: Run a Public Container on AWS for $7 a Month

Deploy a Docker container to Amazon Lightsail Container Services with a managed HTTPS endpoint, simple networking, and predictable entry-level pricing.

Cloud Data Engineer
What if you could take a Docker image, deploy it to AWS, and make it publicly accessible without spending hours configuring VPCs, public subnets, route tables, Internet Gateways, NAT Gateways, and load balancers?
For many small applications, you don't need all that infrastructure complexity.
You need a container, a place to run it, and a public endpoint.
That's where Amazon Lightsail Container Services comes in.
With a starting price of $7 USD per month, Lightsail provides a straightforward way to run a public containerized application on AWS. Its Nano plan includes 0.25 shared vCPU, 512 MB RAM, and a monthly data-transfer quota of 500 GB.
In this article, we'll explore how Lightsail makes container deployment simpler, how to deploy a Docker application, what the $7 plan actually includes, and when this approach makes sense.

1. The Problem: Not Every Container Needs a Full VPC Architecture

Consider a developer who wants to publish a small application:
  • A portfolio website.
  • A personal API.
  • A lightweight Node.js application.
  • A prototype for a startup.
  • A small internal tool.
  • A containerized demonstration project.
Using a traditional AWS architecture, you might need to configure:
  1. A VPC.
  1. Public and private subnets.
  1. Route tables.
  1. An Internet Gateway.
  1. Security groups.
  1. Compute infrastructure.
  1. A load balancer or public endpoint.
  1. TLS certificates and DNS.
This architecture provides flexibility and control, but it also introduces operational overhead.
For a small public application, you may not need to manage every networking component yourself.
The alternative: use a managed container service that handles much of the infrastructure for you.

2. Meet Amazon Lightsail Container Services

Amazon Lightsail is designed to make AWS infrastructure easier to deploy and manage.
Lightsail Container Services let you run Linux-based Docker containers without managing the underlying container infrastructure yourself.
You provide:
  • Your container image.
  • CPU and memory capacity.
  • The number of compute nodes.
  • Container ports.
  • Environment variables.
  • Health-check configuration.
  • The container that should receive public traffic.
Lightsail handles the managed service infrastructure and provides a load-balanced HTTPS endpoint for the public application.
You don't need to create and manage your own VPC networking components for this deployment model.
One important clarification: "Skip the VPC" means you skip managing your own VPC architecture. It does not mean AWS has no underlying networking infrastructure. Lightsail manages that infrastructure for you.



3. What Do You Get for $7 a Month?

Let's look at the entry-level container plan.
Configuration
Nano plan
Monthly starting price
$7 USD
CPU
0.25 shared vCPU
Memory
512 MB
Data-transfer quota
500 GB/month
Public endpoint
Managed HTTPS
Load balancing
Included with public endpoint
Infrastructure management
AWS managed
The pricing model is based on the selected container power multiplied by the number of compute nodes.
For example:
Plan
Price per node/month
Resources
Nano
$7
0.25 shared vCPU, 512 MB RAM
Micro
$10
0.25 shared vCPU, 1 GB RAM
Small
$15
0.5 shared vCPU, 1 GB RAM
Medium
$40
1 vCPU, 2 GB RAM
Large
$80
2 vCPU, 4 GB RAM
XLarge
$160
4 vCPU, 8 GB RAM
Each container service includes a 500 GB monthly data-transfer quota. Outbound transfer beyond that quota is charged at a region-dependent rate, starting at $0.09 per GB.
The service is charged even when disabled or when it has no active deployment. You must delete the service to stop its charges.
These are the published AWS prices referenced for this article. Always check the pricing page for your selected Region before deployment.
Important: $7 is the starting price for one Nano node, not a guarantee that every application will cost exactly $7. Additional services, extra nodes, and data-transfer overages can increase the bill.

4. Understand the Architecture

The architecture is intentionally simple.
Developer
|
v
Docker Image
|
v
Amazon Lightsail
Container Service
|
v
Managed Container
|
v
Managed HTTPS Endpoint
|
v
Internet Users
Here is what Lightsail manages for you:
  • Container hosting infrastructure.
  • Public endpoint.
  • HTTPS access.
  • Load balancing for the public endpoint.
  • Health checks.
  • Container service capacity management.
  • Container logs and service metrics.
You focus on your application rather than building and maintaining the surrounding infrastructure.

5. Hands-On: Deploy Your First Container

Let's deploy a small Node.js application.
For this example, we'll use:
  • Docker.
  • AWS CLI version 2.
  • Lightsail Control plugin ( lightsailctl ).
  • Amazon Lightsail Container Services.
You also need an AWS account and appropriate permissions to manage Lightsail container services.

Step 1: Create a Simple Node.js Application

Create a project directory:
mkdir lightsail-container-demo
cd lightsail-container-demo
Create a file named  server.js :
const http = require("http");

const PORT = process.env.PORT || 8080;

const server = http.createServer((req, res) => {
if (req.url === "/healthz") {
res.writeHead(200);
return res.end("Healthy");
}

res.writeHead(200, {
"Content-Type": "text/html"
});

res.end(`
<h1>Hello from Amazon Lightsail!</h1>
<p>Your container is running on AWS.</p>
<p>Ship a container. Skip the VPC.</p>
`);
});

server.listen(PORT, "0.0.0.0", () => {
console.log(`Application listening on port ${PORT}`);
});
The application listens on port 8080 and exposes a simple health-check endpoint.

Step 2: Create a Dockerfile

Create a file named  Dockerfile :
FROM node:22-alpine

WORKDIR /app

COPY server.js .

EXPOSE 8080

CMD ["node", "server.js"]
This Dockerfile uses a lightweight Node.js Alpine image.
For production applications, use a supported runtime version, pin image versions appropriately, and scan your container images for vulnerabilities.

Step 3: Build and Test the Docker Image

Build the image:
docker build -t lightsail-demo:latest .
Run it locally:
docker run -d \
-p 8080:8080 \
--name lightsail-demo \
lightsail-demo:latest
Open your browser:
http://localhost:8080
You should see:
Hello from Amazon Lightsail!

Your container is running on AWS.
Ship a container. Skip the VPC.
Test the health endpoint:
curl http://localhost:8080/healthz
Expected response:
Healthy
Now your Docker image is ready for deployment.

Step 4: Install and Configure AWS CLI

Install AWS CLI version 2 and configure your AWS credentials.
Check the installation:
aws --version
Configure your credentials:
aws configure
Provide your access key, secret key, default Region, and output format as prompted.
Use an IAM identity with only the permissions needed for this deployment.
You also need the Lightsail Control plugin ( lightsailctl ) to push locally built images through the AWS CLI.
Follow the official installation instructions for your operating system.

Step 5: Create a Lightsail Container Service

Choose an AWS Region where Lightsail Container Services are available.
For this example, we'll use  us-east-1 .
Create the Nano container service:
aws lightsail create-container-service \
--service-name lightsail-demo \
--power nano \
--scale 1 \
--region us-east-1
This creates a service with one Nano compute node.
You can check its status:
aws lightsail get-container-services \
--service-name lightsail-demo \
--region us-east-1
Wait until the service is ready before proceeding.

Step 6: Push Your Docker Image to Lightsail

Use the following command:
aws lightsail push-container-image \
--region us-east-1 \
--service-name lightsail-demo \
--label node-app \
--image lightsail-demo:latest
This command pushes the locally built Docker image to your Lightsail container service.
The command output provides the registered image name.
Keep that image name because you'll use it in the deployment configuration.

Step 7: Create the Deployment Configuration

Create a file named  containers.json .
Replace the image value with the exact image name returned by the previous command.
{
"node-app": {
"image": ":lightsail-demo.node-app.1",
"ports": {
"8080": "HTTP"
},
"environment": {
"PORT": "8080"
}
}
}
The image name above is illustrative. Use the actual generated image name from your push operation.
Now create a file named  public-endpoint.json :
{
"containerName": "node-app",
"containerPort": 8080,
"healthCheck": {
"path": "/healthz",
"successCodes": "200"
}
}
This configuration tells Lightsail:
  • Which container should run.
  • Which port should be opened.
  • Which container should receive public traffic.
  • Which health-check endpoint should be monitored.

Step 8: Deploy the Container

Run:
aws lightsail create-container-service-deployment \
--service-name lightsail-demo \
--containers file://containers.json \
--public-endpoint file://public-endpoint.json \
--region us-east-1
Lightsail will create the deployment and start the container.
You can check deployment status in the Lightsail console or by querying your container service.
Once the deployment becomes active and healthy, the public endpoint will be available.

Step 9: Access Your Public Application

Lightsail generates a public HTTPS endpoint for the container service.
It follows a format similar to:
https://<service-name>.<random-guid>.<region>.cs.amazonlightsail.com
Open the endpoint in your browser.
Your Node.js application should now be accessible over HTTPS.
That's it!
You have deployed a public Docker container on AWS without manually creating a VPC, subnet, route table, Internet Gateway, or NAT Gateway.

6. What Happens to Networking?

This is one of the most interesting parts of Lightsail Container Services.
In a traditional architecture, you are responsible for designing much of the networking.
With Lightsail, AWS manages the service networking and public endpoint.
The public endpoint:
  • Uses HTTPS.
  • Supports IPv4 and IPv6.
  • Automatically redirects HTTP requests to HTTPS.
  • Includes managed load balancing.
  • Supports a custom domain with an appropriate validated TLS certificate.
Only one container in a deployment can be selected as the public endpoint. Other containers in the same service can communicate through the service's private domain.
For example:
frontend.service.local:8080
This makes it possible to build a simple multi-container application without managing your own VPC network design.

7. What About Scaling?

Starting with one Nano node does not mean you must stay there forever.
Lightsail allows you to change the power and scale of your container service.
For example:
Nano
|
v
Micro
|
v
Small
|
v
Medium
|
v
Large
You can increase the number of compute nodes or choose a larger capacity when your application needs more resources.
Remember that service pricing is calculated using:
Monthly Service Price =
Price Per Node × Number of Nodes
For example, three Medium nodes would cost:
$40 × 3 = $120 per month
The monthly transfer quota remains 500 GB per container service, regardless of its selected power or scale.

8. When Should You Use Lightsail Containers?

Lightsail Container Services are useful when simplicity and predictable starting costs matter more than deep infrastructure customization.
Good use cases include:
  • Personal projects and portfolio applications.
  • Small public APIs.
  • Proofs of concept.
  • Startup MVPs.
  • Lightweight web applications.
  • Demonstration environments.
  • Small containerized services.
It is a useful option for developers who want to get a containerized application running without first designing a complete VPC architecture.

9. When Should You Choose ECS or EKS Instead?

Lightsail is not a replacement for every container platform.
Consider Amazon ECS or Amazon EKS when you need:
  • Advanced networking and VPC integration.
  • Complex microservice architectures.
  • Fine-grained infrastructure control.
  • Advanced autoscaling and deployment strategies.
  • Sophisticated service discovery.
  • Extensive security and compliance customization.
  • Large-scale production workloads.
  • Integration with a broader AWS infrastructure architecture.
Lightsail Container Services have their own limitations. For example, they support Linux-based images, only one public endpoint container per service deployment, and a maximum of 10 container entries in a deployment.
The right platform depends on your application's requirements, workload, security model, and expected growth.

10. Cost and Operational Considerations

Before deploying a production application, consider the following:
1. Memory and CPU
The Nano plan has only 512 MB RAM and 0.25 shared vCPU. It is intended for lightweight workloads, not memory-intensive applications.
2. Data transfer
The service includes 500 GB of monthly data transfer. Outbound transfer beyond the allowance incurs additional charges.
3. Additional services
A custom domain, external database, storage service, or other AWS resource may introduce additional costs.
4. Image management
Keep your container images organized and remove old images that are no longer needed.
5. Monitoring
Use available container logs and CPU and memory metrics to understand application health and capacity.
6. Service deletion
Disabling a container service does not stop its charges. Delete the service when you no longer need it.
7. Security
Use secure application configuration, avoid hardcoding credentials, validate input, and keep container images updated.

11. Final Thoughts

Not every application needs a complex cloud architecture.
Sometimes, all you need is a Docker image, a managed runtime, and a public HTTPS endpoint.
Amazon Lightsail Container Services provide a straightforward way to publish containerized applications on AWS while avoiding much of the networking and infrastructure management associated with a traditional deployment.
For developers building small applications, prototypes, APIs, and MVPs, the $7 Nano plan offers an accessible starting point.
As your application grows, you can increase capacity or move to a platform such as Amazon ECS or Amazon EKS when you need more control.
The takeaway: Don't build a complex infrastructure architecture when a managed container service can solve the problem.
Ship your container. Skip the VPC management. Focus on building your application.



References

Disclaimer: Pricing and service capabilities can change. Check the official AWS pricing page and regional availability before deploying. The $7 figure represents one Nano node and excludes any additional services or applicable overage charges.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article