- Install Terraform
- Install the AWS CLI
- Set AWS credentials as environment variables from the terminal
- Register a domain AWS route-53.
To install the Snowclone CLI, run the following command in the terminal:
npm install -g snowclone-cli
Initialize your AWS with the necessary admin infrastructure.
FLAGS
-r, --region: The AWS region
-d, --domain: Your route-53 registered domain
EXAMPLE
snowclone init -r us-west-1 -d myapp.com
Snowclone will prompt users for these values if flags are not present.
Deploy a new backend stack to ECS Fargate.
FLAGS
-n, --name: The name of the project
EXAMPLE
snowclone deploy -n snowcones
Snowclone will prompt users for a project name if the flag is not present.
Import a specified sql file to a specified backend.
FLAGS
-n, --name: The name of the project to upload a sql file to
-f, --filepath: The path of the sql file
EXAMPLE
snowclone import -n snowcones -f snowconesSchema.sql
Snowclone will prompt users for a project name if the flag is not present.
List all active projects.
Remove a specified project.
FLAGS
-n, --name: The name of the project backend to be removed
EXAMPLE
snowclone remove -n snowcones
Snowclone will prompt users for a project name if the flag is not present.
Remove the admin infrastructure that was created with snowclone init
. Note: this operation is irreversable. You will be prompted for confirmation before 'melt' proceeds. This action should only be done if all projects have been removed.