Interactive command — Guides you through selecting and deploying targets with real-time feedback.
Overview
Thefjall deploy command deploys your infrastructure to AWS. It handles both organisation-level deployments (AWS Organization, SSO, accounts) and application deployments (compute, storage, networking).
Usage
Deployment Types
Organisation Deployment
Deploy your AWS organisation structure:- AWS Organization root
- Organisational units
- Service control policies
- Cost allocation tags
Platform Deployment
Deploy platform infrastructure:- AWS SSO configuration
- Shared services
- IPAM pools
- Transit gateways
Application Deployment
Deploy a specific application:- Application infrastructure (ECS, Lambda, etc.)
- Databases (RDS, Aurora, DynamoDB)
- Networking resources
- Load balancers
Interactive Mode
Run without arguments for guided deployment:Options
| Option | Description | Example |
|---|---|---|
-v, --verbose | Show detailed deployment logs | fjall deploy -v |
--np, --no-prompt | Skip confirmation prompts | fjall deploy --np |
-i, --infra-only | Deploy infrastructure only | fjall deploy -i |
-d, --deploy-only | Deploy code only (applications) | fjall deploy -d |
--platform | Deploy platform infrastructure | fjall deploy --platform |
--account | Deploy account infrastructure | fjall deploy --account |
--target <target> | Non-interactive deployment | fjall deploy --target app |
Deployment Process
1. Pre-flight Checks
Fjall validates:- AWS credentials and permissions
- Target exists and is valid
- Required dependencies installed
- No conflicts with existing resources
2. Infrastructure Synthesis
For each deployment:- Compiles TypeScript CDK code
- Generates CloudFormation templates
- Calculates resource changes
- Identifies security implications
3. Deployment Preview
4. Deployment Execution
Fjall:- Creates CloudFormation stacks
- Monitors deployment progress
- Handles dependencies automatically
- Reports any errors immediately
5. Post-Deployment
After successful deployment:- Displays resource endpoints
- Shows connection strings
- Provides next steps
- Updates local configuration
Examples
Deploy Organisation First Time
Deploy Application
Infrastructure vs Code Deployment
Understanding Output
Success Output
Progress Indicators
Handling Failures
Common Issues
-
Permission Denied
Fix: Ensure your AWS user has AdministratorAccess
-
Resource Already Exists
Fix: Use
fjall destroyfirst or choose different name -
Invalid Credentials
Fix: Run
fjall profile setto configure credentials
Recovery Steps
If deployment fails:- Check the error - Read the specific error message
- View CloudFormation - Check AWS Console for details
- Rollback if needed - CloudFormation auto-rollback on failure
- Fix and retry - Address the issue and redeploy
Best Practices
- Always review changes - Check the deployment preview
- Deploy incrementally - Start with dev/staging environments
- Use verbose mode - Add
-vfor troubleshooting - Keep backups - Ensure data is backed up before major changes
Next Steps
After deployment:- View resources:
fjall view --app app - Check costs:
fjall view cost --app app - Monitor logs:
fjall view logs --app app - Add resources:
fjall add storage:aurora --app app
First deployment typically takes 10-15 minutes. Subsequent updates are faster as only changed resources are modified.