Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit 138dae2

Browse files
committed
Fixed #3 for CDKv1 conflict error
1 parent 71d6b1e commit 138dae2

File tree

3 files changed

+10202
-23
lines changed

3 files changed

+10202
-23
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,19 @@ Feature: Verify IAM actions
167167
npm -v
168168
```
169169
### Let's begin
170+
- Install `jq` using relevant package manager for Windows/Linux/macOS.
170171
- Clone this repository and install dependencies
171172
```shell
172-
brew install jq
173-
npm install -g -f aws-cdk@1.127.0
173+
npm install -g -f aws-cdk@1.x
174174
cd $HOME && mkdir -p environment && cd environment
175175
git clone https://github.com/aws-samples/aws-service-control-policies-deployment
176176
cd $HOME/environment/aws-service-control-policies-deployment
177177
```
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+
```
178183
- Install project dependencies and build the project
179184
```shell
180185
npm install
@@ -183,8 +188,6 @@ Feature: Verify IAM actions
183188
```
184189
- Export the AWS credentials for the org management account and execute the below commands
185190
```shell
186-
export BUILDER_AWS_ACCOUNT_ID=<PROVIDE THE BUILDER AWS ACCOUNT ID>
187-
echo $BUILDER_AWS_ACCOUNT_ID
188191
cdk deploy SetupOrgManagementStack
189192
export ORG_MANAGEMENT_ASSUMABLE_ROLE_ARN=$(aws cloudformation describe-stacks --stack-name SetupOrgManagementStack --query 'Stacks[*].Outputs[?ExportName==`orgManagementAssumableRoleArn`].OutputValue' --output text)
190193
echo $ORG_MANAGEMENT_ASSUMABLE_ROLE_ARN

0 commit comments

Comments
 (0)