This Terraform module can be run to manage a test/demo Zimagi instance in the GCP environment.
- Create a GCP project to house the Zimagi test instance
- Add GCP project name as Terraform variable
$> echo 'project = "{project name}"' > terraform.tfvars- Add any other variable overrides you like (see variables.tf)
- Login to GCP environment
$> gcloud auth application-default login- Initialize Terraform
$> terraform init
$> terraform plan -out terraform.tfplan- Provision Terraform plan
$> terraform apply terraform.tfplan- When complete it outputs SSH and service URLs
$> ssh {SSH URL}- On startup a startup script is writing logs to a zimagi_setup.log file
$> tail -f zimagi_setup.log # Tail log until you see the Zimagi environment display and "Zimagi startup complete". It may take a few minutes for this file to exist at login as root dependencies are installed first.
$> source ~/.bashrc # If you logged in before completion of startup script you will need to re-source your .bashrc file to load the reactor and other Zimagi related executables.- View Zimagi environment information
$> zimagi env getAll environment variable configuration overrides for the Zimagi platform should be put at the bottom of the ~/zimagi/data/app.env.sh environment configuration file.
This file is read by all services and the CLI in the Zimagi platform.