Quickly setup Shapeblock on your favorite infrastructure provider.
Intended for experimentation/evaluation ONLY.
You will be responsible for any and all infrastructure costs incurred by these resources. As a result, this repository minimizes costs by standing up the minimum required resources for a given provider.
Cloud quickstarts to install Shapeblock are provided for:
- DigitalOcean (
do
) - AWS(Coming soon)
- Hetzner Cloud(Coming soon)
- Linode(Coming soon)
You will be responsible for any and all infrastructure costs incurred by these resources.
- Terraform >=1.0.0
- Credentials for the cloud provider used for the quickstart
To begin with any quickstart, perform the following steps:
- Clone or download this repository to a local folder
- Choose a cloud provider and navigate into the provider's folder
- Copy or rename
terraform.tfvars.sample
toterraform.tfvars
and fill in all required variables - Run
terraform init
- Run
terraform apply
Here's how the output of a successful run looks like:
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
instructions = <<EOT
Shapeblock has been successfully installed.
Here are the next steps:
1. If you've added a domain, please go to your DNS provider and add the following DNS entries:
A record - test1.example.com 1.2.3.4
CNAME - *.test1.example.com test1.example.com
2. You can access the Shapeblock API using the sb-cli command. The latest version can be downloaded here: https://github.com/shapeblock/sb-cli/releases/latest
3. You can login to Shapeblock using sb-cli with the following credentials:
server: https://sb.example.com
username: admin
password: xu4TVCvzloySWhW3
For more details, check the docs: https://docs.shapeblock.com/
EOT
For more details on each cloud provider, refer to the documentation in their respective folders.
When you're finished exploring the Shapeblock setup, use terraform to tear down all resources in the quickstart.
NOTE: Any resources not provisioned by the quickstart are not guaranteed to be destroyed when tearing down the quickstart. Make sure you tear down any resources you provisioned manually before running the destroy command.
Run terraform destroy -auto-approve
to remove all resources without prompting for confirmation.