AWSAmazon LightsailNetworking

aws_lightsail_distribution cost estimation

A simplified CDN fronting a Lightsail (or other) origin, sold as a flat monthly bundle with an included transfer allowance. The small bundle is ~$2.50/month.

An aws_lightsail_distribution is Lightsail's content delivery network — a simplified CloudFront-style CDN that caches and serves content from an origin, priced the Lightsail way: a flat monthly bundle that includes a data-transfer allowance. The small_1_0 bundle is ~$2.50/month, medium ~$8.50, large ~$18.50, each including progressively more transfer.

The appeal is predictability and simplicity: one flat price with a bundled transfer allowance, versus CloudFront's per-request and per-GB-by-region billing. For a small site or app served from a Lightsail instance, it's the easy, cheap way to add a CDN.

The trade-off is the ceiling. Bundles include a fixed transfer allowance; exceeding it bills overage, and at higher traffic or with advanced caching/routing needs, CloudFront's granular pricing and features become more appropriate. Lightsail distributions are for the small end.

c3x prices the distribution from bundle_id at the flat bundle rate, so the predictable monthly cost is clear; transfer overage is usage-driven.

Terraform example

A minimal but realistic configuration that C3X can estimate.

resource "aws_lightsail_distribution" "cdn" {
  name      = "site-cdn"
  bundle_id = "small_1_0"

  origin {
    name        = aws_lightsail_instance.web.name
    region_name = "us-east-1"
  }

  default_cache_behavior {
    behavior = "cache"
  }
}

Pricing dimensions

What you actually pay for when you provision aws_lightsail_distribution.

DimensionUnitWhat's being charged
CDN distributionper month (bundle)Flat monthly bundle including a data-transfer allowance. Overage above the allowance bills separately.
$2.50/month (small_1_0); medium $8.50, large $18.50

Sample C3X output

A small_1_0 CDN distribution:

aws_lightsail_distribution.cdn
└─ CDN distribution (small_1_0)   1 month   $2.50
                                  Monthly   $2.50

Optimization tips

Common ways to reduce aws_lightsail_distribution cost without changing the workload.

Right-size the bundle to your transfer volume

Difference between bundles / avoided overage

Each bundle includes a transfer allowance; overage bills extra. Match the bundle (small/medium/large) to your expected monthly transfer rather than over-buying or paying overage on an undersized one.

Maximize cache hit ratio

Origin transfer and overage avoided

A CDN's value is serving from cache so traffic doesn't hit the origin. Sensible cache behaviors and TTLs keep more requests within the bundle's transfer allowance and off the origin.

Use CloudFront for high traffic or advanced needs

Workload-dependent

Lightsail distributions are for small, predictable workloads. At higher traffic, or when you need granular caching rules, multiple origins, or edge functions, CloudFront's per-usage pricing and features fit better.

FAQ

How is a Lightsail CDN distribution billed?

A flat monthly bundle that includes a data-transfer allowance — the small_1_0 bundle is ~$2.50/month, with medium and large bundles including more transfer. Exceeding the allowance bills overage. It's predictable by design, unlike CloudFront's per-request/per-GB billing.

Lightsail distribution or CloudFront?

Lightsail for small, predictable sites where a flat bundle is simplest — especially fronting a Lightsail instance. CloudFront for high traffic, multiple origins, granular caching rules, or edge compute, where its usage-based pricing and feature set fit.

How does c3x estimate the cost?

From bundle_id, pricing the flat monthly bundle rate (which includes the transfer allowance). Overage above the allowance is usage-driven.

Related resources

Estimate this resource in your own Terraform

Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_lightsail_distribution.