Prerequisites
Complete these before deploying:- Create an application (an
infrastructure.tsexists in your project) - Authenticated with Fjall (run
fjall login, or setFJALL_API_KEYfor CI/CD) - Connected an AWS account (run
fjall connect)
fjall deploy enforces both gates. An unauthenticated user sees Authentication required. Run 'fjall login' first.
Deploy your application
Run from your project root:api with your application name. The same command builds the container, synthesises infrastructure, and applies the changes.
What happens during a deploy
The interactive deploy runs an automatic pipeline and streams live progress. There is no separate “preview then confirm” step for applications.
Progress streams per phase with a live operation box for each resource group:
Already up to date — no changes since last deploy.
Confirmations
Fjall does not show an unconditional yes/no prompt for application deploys. Two prompts appear only when relevant:- Missing secrets: if expected SSM secrets are absent, Fjall lists each one and asks
Deploy anyway?(defaults to No). - Infrastructure changes: when changes are detected, Fjall asks
Infrastructure changes detected. Deploy now?.
--skip-confirmation to bypass both.
Deployment options
Skip confirmations
Infrastructure only
Apply infrastructure changes without rebuilding the container:Code only
Rebuild and redeploy the container without touching infrastructure:Skip the build
Reuse an already-pushed image (pair with--deploy-only):
Roll forward or back to a known image
Deploy an existing image tag (skips build, implies--deploy-only):
Pass a CI/CD environment label
The-e, --environment flag is a free-form label passed through to CDK synthesis as a context value. It does not select an AWS account or region.
fjall target set <name>, or override per deploy with --target <name>.
Verbose output
All deploy options
After deployment
Inspect your resources
List the resources declared in the application’sinfrastructure.ts:
fjall apps and fjall status.
View logs
Stream logs from the AWS Console (ECS service, Logs tab), or find the log group and tail it:Monitor costs
Track spending in the AWS Cost Explorer, or query it from the CLI:Updating applications
Troubleshooting
When a deploy fails, Fjall rolls back automatically and CloudFormation reports the failing resource.- Read the error message. CloudFormation names the resource that failed.
- Re-run with
--verbosefor detailed logs. - Fix the underlying issue and redeploy.
Common issues
Next Steps
A first deployment typically takes 10 to 15 minutes while AWS provisions resources. Later updates are faster.
Add Resources
Extend your application with databases, storage, and more
List Resources
Inspect resources in your infrastructure.ts
Set Up CI/CD
Automate deployments from your pipeline