Skip to content

Commit a4f0d19

Browse files
committed
added optional cdk bootsrap step for multiple consumer deployment && upgrade cdk.json accounts ids
1 parent 1d323c6 commit a4f0d19

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/eventbridge-mesh/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ This is a CDK application that implements cross-account event routing using Amaz
2424
## Instructions
2525

2626
### CDK bootstrapping
27-
To deploy the stacks in different accounts, you need to bootstrap the CDKToolkit with trust flag. Assuming you will run `cdk deploy` command from account ID: `000000000000`, and deploys producer stack to account ID: `111111111111`, and consumer stack to account ID: `222222222222`
27+
To deploy the stacks in different accounts, you need to bootstrap the CDKToolkit with trust flag. Assuming you will run `cdk deploy` command from account ID: `123456789012`, and deploys producer stack to account ID: `111111111111`, and consumer stack to account ID: `222222222222`
2828

2929
1. In account: `111111111111`, run the below command:
3030
```
3131
cdk bootstrap aws://111111111111/us-east-1 \
32-
--trust 000000000000 \
32+
--trust 123456789012 \
3333
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
3434
```
3535

3636
2. In account: `222222222222`, run the below command:
3737
```
3838
cdk bootstrap aws://222222222222/us-east-1 \
39-
--trust 000000000000 \
39+
--trust 123456789012 \
4040
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
4141
```
4242

4343
3. (Optional: Only do this step, when you deploys multiple consumers solution) In account: `333333333333`, run the below command:
4444
```
4545
cdk bootstrap aws://333333333333/us-east-1 \
46-
--trust 000000000000 \
46+
--trust 123456789012 \
4747
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
4848
```
4949

python/eventbridge-mesh/single-consumer/cdk.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"context": {
44
"appName": "eventbridge-mesh",
55
"region": "us-east-1",
6-
"producerAccountId": "117645918752",
7-
"consumer1AccountId": "778142832559"
6+
"producerAccountId": "111111111111",
7+
"consumer1AccountId": "222222222222"
88
}
99

1010
}

0 commit comments

Comments
 (0)