Skip to main contentBuilds an application using the suga.yaml application spec and referenced platform.
The build command transforms your Suga application configuration into production-ready Terraform infrastructure code. This is typically the step you run before deploying to cloud providers.
What happens during build
- Validates configuration - Checks your
suga.yaml for errors
- Analyzes dependencies - Reviews your application services and resources
- Generates Terraform - Creates cloud provider-specific infrastructure code
- Outputs deployment stack - Produces a complete Terraform directory ready for deployment
Output Structure
The build process creates a .suga/stacks/ directory containing:
- Terraform configuration - Cloud provider resources (AWS, GCP, Azure)
- Application containers - Services, built into Docker Containers ready for deployment
- Networking setup - Load balancers, security groups, routing
- Resource definitions - Databases, storage buckets, queues, etc.
Next Steps After Build
- Navigate to the generated stack directory:
cd .suga/stacks/your-app-{provider}-{id}
- Initialize Terraform:
terraform init -upgrade
- Preview changes:
terraform plan
- Deploy:
terraform apply
Example
The command will prompt you to select your deployment target (AWS, GCP, or Azure) and region if not already configured.