Infrastructure as Code for Kamatera CloudCLI and 3rd party APIs and tools.
eval "$(bin/login.py <ENVIRONMENT_NAME> [SUB_ENVIRONMENT_NAME])"
Follow the instructions to setup your credentials
You can run Terraform commands in the context of the current environment / sub environment using bin/terraform.py
,
it ensures that the correct backend and vars are set for the environment / sub environment.
For example:
bin/terraform.py init
bin/terraform.py apply
See the help message for more options:
bin/terraform.py --help
Terraform variables should be stored in Vault under the following keys:
- For the root environment:
iac/terraform/tf_vars
- For sub environments:
iac/terraform/tf_vars_SUB_ENVIRONMENT_NAME