|
| 1 | +# CLI config is loaded from the following locations (from lowest to highest priority): |
| 2 | +# system dir (`/usr/local/etc/atmos` on Linux, `%LOCALAPPDATA%/atmos` on Windows) |
| 3 | +# home dir (~/.atmos) |
| 4 | +# current directory |
| 5 | +# ENV vars |
| 6 | +# Command-line arguments |
| 7 | +# |
| 8 | +# It supports POSIX-style Globs for file names/paths (double-star `**` is supported) |
| 9 | +# https://en.wikipedia.org/wiki/Glob_(programming) |
| 10 | + |
| 11 | +# Base path for components, stacks and workflows configurations. |
| 12 | +# Can also be set using `ATMOS_BASE_PATH` ENV var, or `--base-path` command-line argument. |
| 13 | +# Supports both absolute and relative paths. |
| 14 | +# If not provided or is an empty string, `components.terraform.base_path`, `components.helmfile.base_path`, `stacks.base_path` and `workflows.base_path` |
| 15 | +# are independent settings (supporting both absolute and relative paths). |
| 16 | +# If `base_path` is provided, `components.terraform.base_path`, `components.helmfile.base_path`, `stacks.base_path` and `workflows.base_path` |
| 17 | +# are considered paths relative to `base_path`. |
| 18 | +base_path: "." |
| 19 | + |
| 20 | +components: |
| 21 | + terraform: |
| 22 | + # Can also be set using `ATMOS_COMPONENTS_TERRAFORM_BASE_PATH` ENV var, or `--terraform-dir` command-line argument |
| 23 | + # Supports both absolute and relative paths |
| 24 | + base_path: "components/terraform" |
| 25 | + # Can also be set using `ATMOS_COMPONENTS_TERRAFORM_APPLY_AUTO_APPROVE` ENV var |
| 26 | + apply_auto_approve: false |
| 27 | + # Can also be set using `ATMOS_COMPONENTS_TERRAFORM_DEPLOY_RUN_INIT` ENV var, or `--deploy-run-init` command-line argument |
| 28 | + deploy_run_init: true |
| 29 | + # Can also be set using `ATMOS_COMPONENTS_TERRAFORM_INIT_RUN_RECONFIGURE` ENV var, or `--init-run-reconfigure` command-line argument |
| 30 | + init_run_reconfigure: true |
| 31 | + # Can also be set using `ATMOS_COMPONENTS_TERRAFORM_AUTO_GENERATE_BACKEND_FILE` ENV var, or `--auto-generate-backend-file` command-line argument |
| 32 | + auto_generate_backend_file: false |
| 33 | + helmfile: |
| 34 | + # Can also be set using `ATMOS_COMPONENTS_HELMFILE_BASE_PATH` ENV var, or `--helmfile-dir` command-line argument |
| 35 | + # Supports both absolute and relative paths |
| 36 | + base_path: "components/helmfile" |
| 37 | + # Can also be set using `ATMOS_COMPONENTS_HELMFILE_KUBECONFIG_PATH` ENV var |
| 38 | + kubeconfig_path: "/dev/shm" |
| 39 | + # Can also be set using `ATMOS_COMPONENTS_HELMFILE_HELM_AWS_PROFILE_PATTERN` ENV var |
| 40 | + helm_aws_profile_pattern: "{namespace}-{tenant}-gbl-{stage}-helm" |
| 41 | + # Can also be set using `ATMOS_COMPONENTS_HELMFILE_CLUSTER_NAME_PATTERN` ENV var |
| 42 | + cluster_name_pattern: "{namespace}-{tenant}-{environment}-{stage}-eks-cluster" |
| 43 | + |
| 44 | +stacks: |
| 45 | + # Can also be set using `ATMOS_STACKS_BASE_PATH` ENV var, or `--config-dir` and `--stacks-dir` command-line arguments |
| 46 | + # Supports both absolute and relative paths |
| 47 | + base_path: "stacks" |
| 48 | + # Can also be set using `ATMOS_STACKS_INCLUDED_PATHS` ENV var (comma-separated values string) |
| 49 | + included_paths: |
| 50 | + - "**/*" |
| 51 | + # Can also be set using `ATMOS_STACKS_EXCLUDED_PATHS` ENV var (comma-separated values string) |
| 52 | + excluded_paths: |
| 53 | + - "globals/**/*" |
| 54 | + - "catalog/**/*" |
| 55 | + - "**/*globals*" |
| 56 | + # Can also be set using `ATMOS_STACKS_NAME_PATTERN` ENV var |
| 57 | + name_pattern: "{tenant}-{environment}-{stage}" |
| 58 | + |
| 59 | +workflows: |
| 60 | + # Can also be set using `ATMOS_WORKFLOWS_BASE_PATH` ENV var, or `--workflows-dir` command-line arguments |
| 61 | + # Supports both absolute and relative paths |
| 62 | + base_path: "workflows" |
| 63 | + |
| 64 | +logs: |
| 65 | + verbose: false |
| 66 | + colors: true |
0 commit comments