-
-
Notifications
You must be signed in to change notification settings - Fork 103
/
atmos.yaml
72 lines (63 loc) · 1.79 KB
/
atmos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
base_path: "./"
components:
terraform:
base_path: "components/terraform"
apply_auto_approve: false
deploy_run_init: true
init_run_reconfigure: true
auto_generate_backend_file: false
stacks:
base_path: "stacks"
included_paths:
- "deploy/**/*"
excluded_paths:
- "**/_defaults.yaml"
name_pattern: "{stage}"
logs:
file: "/dev/stderr"
level: Info
# Custom CLI commands
# No arguments or flags are required
commands:
- name: hello
description: This command says Hello world
steps:
- "echo Hello world!"
# No arguments or flags are required
- name: ip
description: Return my current IP
steps:
- curl -s https://ifconfig.me
- echo
# Use Nested Custom Commands
- name: "github"
commands:
- name: "status"
description: This command returns the number of stargazers for a GitHub repository
steps:
- curl -s https://www.githubstatus.com/api/v2/status.json | jq -r .status.description
# Use positional arguments
- name: "stargazers"
description: This command returns the number of stargazers for a GitHub repository
arguments:
- name: repo
description: >-
The GitHub repository to fetch the stargazers count for.
e.g. cloudposse/atmos
required: true
default: cloudposse/atmos
steps:
- curl -s https://api.github.com/repos/{{ .Arguments.repo }} | jq -r .stargazers_count
# Use flags
- name: weather
description: This command fetches the weather
flags:
- name: location
shorthand: l
description: >-
Fetch the weather for a specific location. Works with airport codes.
Make sure to properly URL encode the location, if not using an airport code.
--location "LAX"
required: true
steps:
- curl -s https://wttr.in/{{ .Flags.location }}