Skip to main content

Prerequisites

Complete these before deploying: fjall deploy enforces both gates. An unauthenticated user sees Authentication required. Run 'fjall login' first.

Deploy your application

Run from your project root:
Replace 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:
If nothing changed since the last deploy, Fjall reports 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?.
Pass --skip-confirmation to bypass both.

Deployment options

Skip confirmations

For CI/CD pipelines, force plain output:

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.
To choose which AWS account a deploy lands in, set the active deployment target with 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’s infrastructure.ts:
For an application and organisation overview, use 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.
  1. Read the error message. CloudFormation names the resource that failed.
  2. Re-run with --verbose for detailed logs.
  3. 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