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
Lightweight is not a ~$35/month stack: NAT gateway hours alone can approach
that amount before the database, storage, ALB and tasks. Price the complete
configuration in the AWS Pricing Calculator for your region and expected
running hours. Include public IPv4, secrets and their keys, logs, backup
storage, request/processing charges and transfer. No tier is a billing cap.
After deployment,
fjall costs --app <name> reports attributed spend; billing
data can lag and is not a pre-deploy quote.
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