Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 110b2ab

Browse files
authoredNov 3, 2022
Fix: Atmos Config (#18)
* added atmos version pinning, using same version as infra-live * Added atmos config for tutorial * Added atmos config for tutorial * upgrade required tf version
1 parent 2591fe7 commit 110b2ab

File tree

6 files changed

+113
-3
lines changed

6 files changed

+113
-3
lines changed
 

‎02-atmos/atmos.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
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+
included_paths:
40+
- "**/*"
41+
# Can also be set using 'ATMOS_STACKS_EXCLUDED_PATHS' ENV var (comma-separated values string)
42+
excluded_paths:
43+
- "**/_defaults.yaml"
44+
# Can also be set using 'ATMOS_STACKS_NAME_PATTERN' ENV var
45+
name_pattern: "{stage}"
46+
47+
workflows:
48+
# Can also be set using 'ATMOS_WORKFLOWS_BASE_PATH' ENV var, or '--workflows-dir' command-line arguments
49+
# Supports both absolute and relative paths
50+
base_path: "stacks/workflows"
51+
52+
logs:
53+
verbose: false
54+
colors: true

‎02-atmos/stacks/example.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import: []
2-
vars: {}
2+
vars:
3+
stage: example
34

45
terraform:
56
vars: {}

‎03-first-aws-environment/atmos.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
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+
included_paths:
40+
- "**/*"
41+
# Can also be set using 'ATMOS_STACKS_EXCLUDED_PATHS' ENV var (comma-separated values string)
42+
excluded_paths:
43+
- "**/_defaults.yaml"
44+
# Can also be set using 'ATMOS_STACKS_NAME_PATTERN' ENV var
45+
name_pattern: "{environment}-{stage}"
46+
47+
workflows:
48+
# Can also be set using 'ATMOS_WORKFLOWS_BASE_PATH' ENV var, or '--workflows-dir' command-line arguments
49+
# Supports both absolute and relative paths
50+
base_path: "stacks/workflows"
51+
52+
logs:
53+
verbose: false
54+
colors: true

‎03-first-aws-environment/components/terraform/tfstate-backend/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = "~> 0.14.0"
2+
required_version = ">= 1.0.0"
33

44
required_providers {
55
aws = {

‎03-first-aws-environment/stacks/ue2-root.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import:
33
vars:
44
region: us-east-2
55
environment: ue2
6+
stage: root
67
components:
78
terraform:
89
tfstate-backend:

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG VERSION=latest
22
ARG OS=debian
33
ARG CLI_NAME=tutorials
44
ARG TF_1_VERSION=1.3.0
5-
ARG ATMOS_VERSION=1.4.20
5+
ARG ATMOS_VERSION=1.9.1
66

77
FROM cloudposse/geodesic:$VERSION-$OS
88

0 commit comments

Comments
 (0)
This repository has been archived.