|
| 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: true |
| 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: true |
| 33 | + |
| 34 | +stacks: |
| 35 | + # Can also be set using `ATMOS_STACKS_BASE_PATH` ENV var, or `--config-dir` and `--stacks-dir` command-line arguments |
| 36 | + # Supports both absolute and relative paths |
| 37 | + base_path: "stacks" |
| 38 | + # Can also be set using `ATMOS_STACKS_INCLUDED_PATHS` ENV var (comma-separated values string) |
| 39 | + # Since we are distinguishing stacks based on namespace, and namespace is not part |
| 40 | + # of the stack name, we have to set `included_paths` via the ENV var in the Dockerfile |
| 41 | + included_paths: |
| 42 | + - "orgs/**/*" |
| 43 | + |
| 44 | + # Can also be set using `ATMOS_STACKS_EXCLUDED_PATHS` ENV var (comma-separated values string) |
| 45 | + excluded_paths: |
| 46 | + - "**/_defaults.yaml" |
| 47 | + |
| 48 | + # Can also be set using `ATMOS_STACKS_NAME_PATTERN` ENV var |
| 49 | + name_pattern: "{tenant}-{stage}" |
| 50 | + |
| 51 | +workflows: |
| 52 | + # Can also be set using `ATMOS_WORKFLOWS_BASE_PATH` ENV var, or `--workflows-dir` command-line arguments |
| 53 | + # Supports both absolute and relative paths |
| 54 | + base_path: "stacks/workflows" |
| 55 | + |
| 56 | +# https://github.com/cloudposse/atmos/releases/tag/v1.33.0 |
| 57 | +logs: |
| 58 | + file: "/dev/stdout" |
| 59 | + # Supported log levels: Trace, Debug, Info, Warning, Off |
| 60 | + level: Info |
| 61 | + |
| 62 | +settings: |
| 63 | + # Can also be set using 'ATMOS_SETTINGS_LIST_MERGE_STRATEGY' environment variable, or '--settings-list-merge-strategy' command-line argument |
| 64 | + list_merge_strategy: replace |
| 65 | + |
| 66 | +# `Go` templates in Atmos manifests |
| 67 | +# https://atmos.tools/core-concepts/stacks/templating |
| 68 | +# https://pkg.go.dev/text/template |
| 69 | +templates: |
| 70 | + settings: |
| 71 | + enabled: true |
| 72 | + # https://masterminds.github.io/sprig |
| 73 | + sprig: |
| 74 | + enabled: true |
| 75 | + # https://docs.gomplate.ca |
| 76 | + gomplate: |
| 77 | + enabled: true |
0 commit comments