When discussing infrastructure, a 'live environment' is a replica of the production system created for each branch or feature in development. This allows developers and administrators to test changes in an environment that closely mirrors production without risking disruptions to the actual live services.
So a new tool designed for this purpose is 'LiveCraft', which is a CLI tool that facilitates the creation of these live environments.
Actually, Livecraft only support bash script with one arguments like:
livecraft infra/tf.sh plan
Livecraft could help generated live environments with:
Terraform
OpenTofu
Bash
name | description | example |
---|---|---|
STAGE | this variables is the stage ID (string) |
prod |
CURRENT_BRANCH | the current git branch | main |
TAG | autogenerated tags | prod-39e58ad258288cc8a0013fac8a80552ac511c619 |
- Clone this repository
- Add your own Terraform or OpenTofu code to infra/terraform
- Add your default variables to infra/terraform/variables.tf
- Add your your live environment variables to infra/ci-vars.tfvars.json.tpl
make infra.init
make infra.plan
make infra.apply
make infra.destroy