Skip to main content

Overview

The Lightweight tier runs your containers on Fargate Spot at a discount against on-demand Fargate pricing. It suits internal tools, development environments and low-traffic services that tolerate occasional task interruption. Spot capacity can be reclaimed by AWS at two minutes’ notice. Pick Standard instead when the workload must stay up.

Prerequisites

  • A connected AWS account (fjall connect)
  • A signed-in CLI session (fjall login)

Create a Lightweight application

The CLI prompts for the application name, whether to include a database, how many services to create, and the Dockerfile path and container port for each service. Full prompt sequence: Create an Application. The scaffold writes fjall/<app>/infrastructure.ts containing:

Architecture

The VPC spans two availability zones so the load balancer stays reachable. The database instance itself is single-AZ, which is where most of the saving against Standard comes from.

Generated infrastructure

Scaffolding an application named simple produces:
The database and compute constructs both take the application name as their id. The default service is named api.

Specifications

Compute (ECS on Fargate Spot)

Database (RDS Instance)

Networking

Cost comparison

* Tinkerer is $0 only within AWS free-tier limits. Data transfer and over-limit usage incur charges. Figures are estimates and exclude data transfer and request charges. Actual cost varies by region, traffic and database load. Each tier page carries the itemised breakdown behind its figure, and fjall costs --app <name> reports what a deployed application actually spends.

When to use it

Good fit:
  • Internal tools and admin panels
  • Development and staging environments
  • Low-traffic websites and simple APIs
  • Prototypes moving to production
  • Cost-sensitive projects
Pick another tier when you need:
  • Guaranteed capacity (Spot tasks can be reclaimed)
  • Mission-critical uptime
  • Sustained high traffic
  • Multi-region deployment

Lightweight compared with Standard

Customisation

Resize the database

instanceType is a top-level database property, so change it with the CLI:
The codemod rewrites infrastructure.ts in place and typechecks the result. See fjall modify.

Switch to on-demand Fargate

capacityProvider sits inside the services array, which the property-flag syntax does not address. Edit infrastructure.ts directly:
Then validate the edit before deploying:

Monitoring

CloudWatch collects ECS service health, RDS instance metrics, ALB request counts and application logs. Watch the ECS service events for Spot reclamation notices, which appear as task stops with a SpotInterruption reason.

Upgrade path

Resilient requires a Pro plan and Enterprise requires an Enterprise plan. The CLI blocks the tier at selection time when the entitlement is missing.

Security

  • The database sits in private subnets with no route in from the internet
  • Compute tasks reach the internet through the NAT gateway, never directly
  • Security groups open only the ports the services declare
  • Storage is encrypted at rest and connections use TLS
  • Database credentials live in AWS Secrets Manager and reach containers through secretsImport

Next Steps

Deploy an Application

Deploy your Lightweight application to AWS

Standard Pattern

Compare against the on-demand Fargate tier

Add Resources

Add databases, storage and messaging to your application

Compute Factory

Customise services, scaling and container settings