This repository was archived by the owner on Jan 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10202
-23
lines changed Expand file tree Collapse file tree 3 files changed +10202
-23
lines changed Original file line number Diff line number Diff line change @@ -167,14 +167,19 @@ Feature: Verify IAM actions
167
167
npm -v
168
168
```
169
169
### Let's begin
170
+ - Install ` jq ` using relevant package manager for Windows/Linux/macOS.
170
171
- Clone this repository and install dependencies
171
172
``` shell
172
- brew install jq
173
- npm install -g -f aws-cdk@1.127.0
173
+ npm install -g -f aws-cdk@1.x
174
174
cd $HOME && mkdir -p environment && cd environment
175
175
git clone https://github.com/aws-samples/aws-service-control-policies-deployment
176
176
cd $HOME /environment/aws-service-control-policies-deployment
177
177
```
178
+ - Export the AWS builder account ID for your infrastructure
179
+ ``` shell
180
+ export BUILDER_AWS_ACCOUNT_ID=123456789012
181
+ echo $BUILDER_AWS_ACCOUNT_ID
182
+ ```
178
183
- Install project dependencies and build the project
179
184
``` shell
180
185
npm install
@@ -183,8 +188,6 @@ Feature: Verify IAM actions
183
188
```
184
189
- Export the AWS credentials for the org management account and execute the below commands
185
190
``` shell
186
- export BUILDER_AWS_ACCOUNT_ID=< PROVIDE THE BUILDER AWS ACCOUNT ID>
187
- echo $BUILDER_AWS_ACCOUNT_ID
188
191
cdk deploy SetupOrgManagementStack
189
192
export ORG_MANAGEMENT_ASSUMABLE_ROLE_ARN=$( aws cloudformation describe-stacks --stack-name SetupOrgManagementStack --query ' Stacks[*].Outputs[?ExportName==`orgManagementAssumableRoleArn`].OutputValue' --output text)
190
193
echo $ORG_MANAGEMENT_ASSUMABLE_ROLE_ARN
You can’t perform that action at this time.
0 commit comments