This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added atmos version pinning, using same version as infra-live * Added atmos config for tutorial * Added atmos config for tutorial * upgrade required tf version
- Loading branch information
Showing
6 changed files
with
113 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# CLI config is loaded from the following locations (from lowest to highest priority): | ||
# system dir ('/usr/local/etc/atmos' on Linux, '%LOCALAPPDATA%/atmos' on Windows) | ||
# home dir (~/.atmos) | ||
# current directory | ||
# ENV vars | ||
# Command-line arguments | ||
# | ||
# It supports POSIX-style Globs for file names/paths (double-star '**' is supported) | ||
# https://en.wikipedia.org/wiki/Glob_(programming) | ||
|
||
# Base path for components, stacks and workflows configurations. | ||
# 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', 'stacks.base_path' and 'workflows.base_path' | ||
# are independent settings (supporting both absolute and relative paths). | ||
# If 'base_path' is provided, 'components.terraform.base_path', 'components.helmfile.base_path', 'stacks.base_path' and 'workflows.base_path' | ||
# are considered paths relative to 'base_path'. | ||
base_path: "." | ||
|
||
components: | ||
terraform: | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_BASE_PATH' ENV var, or '--terraform-dir' command-line argument | ||
# Supports both absolute and relative paths | ||
base_path: "components/terraform" | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_APPLY_AUTO_APPROVE' ENV var | ||
apply_auto_approve: false | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_DEPLOY_RUN_INIT' ENV var, or '--deploy-run-init' command-line argument | ||
deploy_run_init: true | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_INIT_RUN_RECONFIGURE' ENV var, or '--init-run-reconfigure' command-line argument | ||
init_run_reconfigure: true | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_AUTO_GENERATE_BACKEND_FILE' ENV var, or '--auto-generate-backend-file' command-line argument | ||
auto_generate_backend_file: false | ||
|
||
stacks: | ||
# Can also be set using 'ATMOS_STACKS_BASE_PATH' ENV var, or '--config-dir' and '--stacks-dir' command-line arguments | ||
# Supports both absolute and relative paths | ||
base_path: "stacks" | ||
# Can also be set using 'ATMOS_STACKS_INCLUDED_PATHS' ENV var (comma-separated values string) | ||
included_paths: | ||
- "**/*" | ||
# Can also be set using 'ATMOS_STACKS_EXCLUDED_PATHS' ENV var (comma-separated values string) | ||
excluded_paths: | ||
- "**/_defaults.yaml" | ||
# Can also be set using 'ATMOS_STACKS_NAME_PATTERN' ENV var | ||
name_pattern: "{stage}" | ||
|
||
workflows: | ||
# Can also be set using 'ATMOS_WORKFLOWS_BASE_PATH' ENV var, or '--workflows-dir' command-line arguments | ||
# Supports both absolute and relative paths | ||
base_path: "stacks/workflows" | ||
|
||
logs: | ||
verbose: false | ||
colors: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import: [] | ||
vars: {} | ||
vars: | ||
stage: example | ||
|
||
terraform: | ||
vars: {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# CLI config is loaded from the following locations (from lowest to highest priority): | ||
# system dir ('/usr/local/etc/atmos' on Linux, '%LOCALAPPDATA%/atmos' on Windows) | ||
# home dir (~/.atmos) | ||
# current directory | ||
# ENV vars | ||
# Command-line arguments | ||
# | ||
# It supports POSIX-style Globs for file names/paths (double-star '**' is supported) | ||
# https://en.wikipedia.org/wiki/Glob_(programming) | ||
|
||
# Base path for components, stacks and workflows configurations. | ||
# 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', 'stacks.base_path' and 'workflows.base_path' | ||
# are independent settings (supporting both absolute and relative paths). | ||
# If 'base_path' is provided, 'components.terraform.base_path', 'components.helmfile.base_path', 'stacks.base_path' and 'workflows.base_path' | ||
# are considered paths relative to 'base_path'. | ||
base_path: "." | ||
|
||
components: | ||
terraform: | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_BASE_PATH' ENV var, or '--terraform-dir' command-line argument | ||
# Supports both absolute and relative paths | ||
base_path: "components/terraform" | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_APPLY_AUTO_APPROVE' ENV var | ||
apply_auto_approve: false | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_DEPLOY_RUN_INIT' ENV var, or '--deploy-run-init' command-line argument | ||
deploy_run_init: true | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_INIT_RUN_RECONFIGURE' ENV var, or '--init-run-reconfigure' command-line argument | ||
init_run_reconfigure: true | ||
# Can also be set using 'ATMOS_COMPONENTS_TERRAFORM_AUTO_GENERATE_BACKEND_FILE' ENV var, or '--auto-generate-backend-file' command-line argument | ||
auto_generate_backend_file: false | ||
|
||
stacks: | ||
# Can also be set using 'ATMOS_STACKS_BASE_PATH' ENV var, or '--config-dir' and '--stacks-dir' command-line arguments | ||
# Supports both absolute and relative paths | ||
base_path: "stacks" | ||
# Can also be set using 'ATMOS_STACKS_INCLUDED_PATHS' ENV var (comma-separated values string) | ||
included_paths: | ||
- "**/*" | ||
# Can also be set using 'ATMOS_STACKS_EXCLUDED_PATHS' ENV var (comma-separated values string) | ||
excluded_paths: | ||
- "**/_defaults.yaml" | ||
# Can also be set using 'ATMOS_STACKS_NAME_PATTERN' ENV var | ||
name_pattern: "{environment}-{stage}" | ||
|
||
workflows: | ||
# Can also be set using 'ATMOS_WORKFLOWS_BASE_PATH' ENV var, or '--workflows-dir' command-line arguments | ||
# Supports both absolute and relative paths | ||
base_path: "stacks/workflows" | ||
|
||
logs: | ||
verbose: false | ||
colors: true |
2 changes: 1 addition & 1 deletion
2
03-first-aws-environment/components/terraform/tfstate-backend/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
terraform { | ||
required_version = "~> 0.14.0" | ||
required_version = ">= 1.0.0" | ||
|
||
required_providers { | ||
aws = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import: | |
vars: | ||
region: us-east-2 | ||
environment: ue2 | ||
stage: root | ||
components: | ||
terraform: | ||
tfstate-backend: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters