Skip to content

Commit e370e8f

Browse files
authored
Merge pull request #12 from pmbenjamin/update-restacker-yml
Restacker-Example.yml updates
2 parents ba71d29 + c72b0f5 commit e370e8f

File tree

2 files changed

+56
-19
lines changed

2 files changed

+56
-19
lines changed

docs/02-RESTACKER_YML.md

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,43 @@ See the sample [here](../source/restacker-example.yml).
44

55
## STRUCTURE
66
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.
2644

2745
## Example Restacker Configuration:
2846
```
@@ -68,4 +86,13 @@ In order for Restacker to work as expected, the following key:value pairs are re
6886
:role_name: myapp2-dso-DeployAdmin
6987
:role_prefix: "/dso/human/"
7088
89+
:learn:
90+
:region: us-west-2
91+
:profile: learning-profile
92+
:target:
93+
:label: myLearningAccount
94+
:account_number: '123456789012'
95+
:bucket:
96+
:name: my-learning-bucket
97+
7198
```

source/restacker-sample.yml renamed to source/restacker-example.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:default:
22
:label: myapp1
3+
:profile: default
34

45
:ctrl: &ctrl_default
56
:label: ctrlAcct
@@ -39,3 +40,12 @@
3940
:account_number: '123098456765'
4041
:role_name: myapp2-dso-DeployAdmin
4142
:role_prefix: "/dso/human/"
43+
44+
:learn:
45+
:region: us-west-2
46+
:profile: learning-profile
47+
:target:
48+
:label: myLearningAccount
49+
:account_number: '123456789012'
50+
:bucket:
51+
:name: my-learning-bucket

0 commit comments

Comments
 (0)