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
fjall/<app>/infrastructure.ts containing:
Architecture
Generated infrastructure
Scaffolding an application namedsimple produces:
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
- 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:
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:
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 aSpotInterruption 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