🚀 Enhancements
Add `base_path` setting to `atmos` config @aknysh (#100)
what
- Add
base_path
setting toatmos
config - Add
atmos
logos - Update README
why
- Provide/configure a base path for all components and stacks
- Allow controlling stacks and components paths using only one setting or ENV var
- Can also be set using
ATMOS_BASE_PATH
ENV var, or--base-path
command-line argument - Supports both absolute and relative paths
- If not provided or is an empty string,
components.terraform.base_path
,components.helmfile.base_path
andstacks.base_path
are independent settings (supporting both absolute and relative paths) - If
base_path
is provided (via ENV var or command-line arg),components.terraform.base_path
,components.helmfile.base_path
andstacks.base_path
are considered paths relative tobase_path
test
ATMOS_BASE_PATH=./examples/complete atmos terraform apply test/test-component -s=tenant1-ue2-dev
Found ENV var ATMOS_BASE_PATH=./examples/complete
Variables for the component 'test/test-component' in the stack 'tenant1/ue2/dev':
enabled: true
environment: ue2
namespace: eg
region: us-east-2
service_1_name: service-1
service_2_name: service-2
stage: dev
tenant: tenant1
Writing variables to file:
examples/complete/components/terraform/test/test-component/tenant1-ue2-dev-test-component.terraform.tfvars.json