-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbespin.yml
More file actions
89 lines (74 loc) · 2.16 KB
/
bespin.yml
File metadata and controls
89 lines (74 loc) · 2.16 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
## Put in ~/.bespin.yml
# environments:
# poc:
# account_id: 12345678
# tags:
# tag_at_env: env_override
# environment: "{environment}"
vars:
config1: value from bespin.yml
myexample: my example variable
plans:
some:
- a
- c
stacks:
# example:
# stack_yaml: "{config_root}/example.yaml"
# stack_json: "{config_root}/example.json"
# params_yaml: {}
# params_yaml: "{config_root}/{environment}/example-params.yaml"
# params_json: "{config_root}/{environment}/example-params.json"
# role_name: "custom-cloudformation-role"
# build_first: []
# build_after: []
#
a:
# stack_name is stack key name if not specified
stack_yaml: "{config_root}/user.yaml"
stack_policy: "{config_root}/stack_policy.json"
params_json: "{config_root}/params.json"
tags:
tags_at_stack: stack
keyexample: "_key_name_X refers to the key '{_key_name_0}' and its parents '{_key_name_1}', '{_key_name_2}'"
region: "{region}"
poc:
tags:
tag_env_override: stack_env_override
environment_region: "{environments.poc.region}"
b:
stack_name: "b-custom"
stack_yaml: "{config_root}/user.yaml"
# params_json: "{config_root}/{environment}/{_key_name_1}-params.json"
c:
build_first:
- b
build_after:
- d
stack_yaml: "{config_root}/user.yaml"
params_yaml:
Input: from bespin.yml
d:
stack_yaml: "{config_root}/user.yaml"
# params_yaml: "{config_root}/{environment}/{_key_name_1}-params.yaml"
e:
stack_yaml: "{config_root}/user.yaml"
vars:
# obtaining the output from another stack can be done via variable
# var_name: ["stack name in AWS", "output key in stack"]
b_output: ["{stacks.b.stack_name}", "Output"]
# Ensure b is built first so we get the latest output
build_first:
- b
params_yaml:
Input: XXX_B_OUTPUT_XXX
# everything default :mindblown:
user: {}
bespin:
# Extra config files can be loaded. These are deep-merged in the order listed.
# This file's definitions override any values in extra_files
extra_files:
- config2.yml
extra_imports:
- ["{config_root}", "custom"]