Migrate existing applications to Suga for cloud-agnostic deployment.
Suga helps you migrate existing applications to a cloud-agnostic architecture. With Suga, you get local development with local emulation of cloud services, the ability to deploy anywhere - AWS or GCP from the same code, and auto-generated Terraform for production-ready infrastructure. This guide walks through migrating a Go web service as an example that can be easily adapted to other languages and services.
Prerequisites: Make sure you have the Suga CLI installed.
This guide assumes you have an existing application that uses cloud services.
If you’re starting fresh, see the Getting Started Guide.
Select your cloud provider and region when prompted. You’ll see:
Copy
✓ Terraform generated successfully output written to ./terraform/stacks/my-appNext steps:1. Run cd ./terraform/stacks/my-app to move to the stack directory2. Initialize the stack terraform init -upgrade3. Optionally, preview with terraform plan4. Deploy with terraform apply
Configure cloud provider credentials:
AWS
GCP
Configure AWS
Copy
aws configure
Deploy with Terraform:
Navigate to Stack
Copy
cd terraform/stacks/my-app
Initialize Terraform
Copy
terraform init -upgrade
Preview Changes
Copy
terraform plan
Deploy Infrastructure
Copy
terraform apply
Type yes when prompted. After deployment completes, your application endpoints will be displayed in the output.
Your application is now cloud-agnostic. Deploy to AWS or GCP without code
changes.