You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/02-RESTACKER_YML.md
+46-19Lines changed: 46 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,43 @@ See the sample [here](../source/restacker-example.yml).
4
4
5
5
## STRUCTURE
6
6
In order for Restacker to work as expected, the following key:value pairs are required:
7
-
-`:default:`: specifies the default location/plane for all Restacker operations. This is intended to save you from having to specify the required `-l <location>` everytime.
8
-
-`:label:`: the name of the default location.
9
-
-`:ctrl: &ctrl_default`: default configuration for the Control Account
10
-
-`:label:`: name of the account
11
-
-`:role-name:`
12
-
-`:role-prefix:`
13
-
-`:bucket:`: S3 Bucket configuration to read/consume files from.
14
-
-`:name:`: Bucket name
15
-
-`:prefix:`: **optional** bucket prefix/path
16
-
-`:ami_key:`: **optional** name of object on S3 that contains list of approved AMIs
17
-
-`:Account_Name:`: name of target account
18
-
-`:region:`: default region to deploy instances in (e.g. `us-west-2`)
19
-
-`:ctrl:`: control account for this account
20
-
-`<<: *ctrl_default`: if the control account is the default account specified in `&ctrl_default`, then just insert default configurations here
21
-
-`:target:`: the target account configuration
22
-
-`:label:`: name of target account
23
-
-`:account_number:`: target account number
24
-
-`:role_name:`: target role name
25
-
-`:role_prefix:`: target role prefix
7
+
### GENERAL DEFAULTS
8
+
-`:default:`: This specifies the default location/plane for all Restacker operations. This is intended to save you from having to specify the required `-l <location>` everytime.
9
+
-`:label:`: Set this to the name of your preferred default location.
10
+
-`:profile:`: Set this to your preferred default AWS profile (see `~/.aws/credentials`)
11
+
12
+
### CONTROL PLANE DEFAULTS
13
+
-`:ctrl: &ctrl_default`: This is the default Control-Plane configuration. Do not change this line.
14
+
-`:label:`: Set this to the name of your control account.
15
+
-`:role-name:`: Set this to the name of the Control-Plane Role you wish to assume.
16
+
-`:role-prefix:`: Set this to the prefix of the Control-Plane Role you wish to assume.
17
+
-`:bucket:`: S3 Bucket configuration to read/consume files from. Do not change this line.
18
+
-`:name:`: Set this to the S3 bucket name.
19
+
-`:prefix:`: **optional** Set this to the bucket prefix/path where CloudFormation Templates & approved AMIs are stored.
20
+
-`:ami_key:`: **optional** Set this to name of the object on S3 that contains list of approved AMIs.
21
+
22
+
### TARGET PLANE SETTINGS
23
+
-`:acctName:`: This represents the name of the account.
24
+
-`:region:`: Set this to the default region you wish to operate in.
25
+
-`:ctrl:`: This represents the control plane for this account. Do not change this line.
26
+
-`<<: *ctrl_default`: if the control plane configuration for this account is the default account specified above (see `:ctrl: &ctrl_default` section), then just insert default configurations here.
27
+
-`:target:`: This represents the target plane configuration. Do not change this line.
28
+
-`:label:`: Set this to the name of the target account.
29
+
-`:account_number:`: Set this to the target account number.
30
+
-`:role_name:`: Set this to the target role name you wish to assume.
31
+
-`:role_prefix:`: Set this to the prefix of the target role you wish to assume.
32
+
33
+
### NON-CONTROL-PLANE ACCOUNTS (AKA DIRECT ACCOUNTS)
34
+
Not all accounts fall under the Control-Plane architecture. Some accounts are accessible directly without having to assume roles from Control Accounts and Target Accounts, such as testing or learning accounts.
35
+
-`:learn:`: This represents the name of the direct target account
36
+
-`:region:`: Set this to the region you wish to operate in.
37
+
-`:profile:`: Set this to the profile name of this account (see `~/.aws/credentials`).
38
+
-`:target:`: This represents the target account information. Do not change this line.
39
+
-`:label:`: Set this to the name of your account.
40
+
-`:account_number:`: Set this to the account number.
41
+
-`:bucket:`: This represents the S3 bucket settings for the direct target account. Do not change this line.
42
+
-`:name:`: Set this to the name of the S3 bucket
43
+
-`:prefix:`: Set this to the bucket prefix where CloudFormation templates are stored.
26
44
27
45
## Example Restacker Configuration:
28
46
```
@@ -68,4 +86,13 @@ In order for Restacker to work as expected, the following key:value pairs are re
0 commit comments