Skip to content

Commit d381fb8

Browse files
committed
updated README.md
1 parent c14cd49 commit d381fb8

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

python/eventbridge-mesh/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cdk bootstrap aws://333333333333/us-east-1 \
5151
1. Run: `cd single-consumer`
5252
2. Change the values of `producerAccountId` and `consumerAccountId` in `cdk.json`
5353
3. Install and configure the CDK: https://docs.aws.amazon.com/CDK/latest/userguide/install_config.html
54-
4. Make sure you use a role or user has proper permission in account ID: `000000000000`, and run below commands:
54+
4. Make sure you use a role or user has proper permission in account ID: `123456789012`, and run below commands:
5555
```ruby
5656
npm run build
5757

@@ -66,7 +66,7 @@ cdk deploy --all
6666
1. Run: `cd multiple-consumer`
6767
2. Change the values of `producerAccountId`, `consumer1AccountId`, and `consumer2AccountId` in `cdk.json`
6868
3. Install and configure the CDK: https://docs.aws.amazon.com/CDK/latest/userguide/install_config.html
69-
4. Make sure you use a role or user has proper permission in account ID: `000000000000`, and run below commands:
69+
4. Make sure you use a role or user has proper permission in account ID: `123456789012`, and run below commands:
7070
```ruby
7171
npm run build
7272

typescript/eventbridge-mesh/README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# CDK Sample: Event Bridge mesh with CDK
1+
# CDK Typescript Sample: Event Bridge mesh with CDK
2+
3+
![Language-Support: Stable](https://img.shields.io/badge/language--support-stable-success.svg?style=for-the-badge)
24

35
## Description:
46
A CDK way to set up a Event Bridge Mesh(Cross-Account), where you relay the messages from one Event Bridge in a producer account to another Event Bridge in a consumer account
@@ -21,10 +23,35 @@ This is a CDK application that implements cross-account event routing using Amaz
2123

2224
## Instructions
2325

24-
### Single consumer:
26+
### 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: `123456789012`, and deploys producer stack to account ID: `111111111111`, and consumer stack to account ID: `222222222222`
28+
29+
1. In account: `111111111111`, run the below command:
30+
```
31+
cdk bootstrap aws://111111111111/us-east-1 \
32+
--trust 123456789012 \
33+
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
34+
```
35+
36+
2. In account: `222222222222`, run the below command:
37+
```
38+
cdk bootstrap aws://222222222222/us-east-1 \
39+
--trust 123456789012 \
40+
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
41+
```
42+
43+
3. (Optional: Only do this step, when you deploys multiple consumers solution) In account: `333333333333`, run the below command:
44+
```
45+
cdk bootstrap aws://333333333333/us-east-1 \
46+
--trust 123456789012 \
47+
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
48+
```
49+
50+
### Deploy Single consumer solution:
2551
1. Run: `cd single-consumer`
2652
2. Change the values of `producerAccountId` and `consumerAccountId` in `cdk.json`
2753
3. Install and configure the CDK: https://docs.aws.amazon.com/CDK/latest/userguide/install_config.html
54+
4. Make sure you use a role or user has proper permission in account ID: `123456789012`, and run below commands:
2855
```ruby
2956
npm run build
3057

@@ -35,10 +62,11 @@ cdk synth
3562
cdk deploy --all
3663
```
3764

38-
### Multiple consumers:
65+
### Deploy Multiple consumers solution:
3966
1. Run: `cd multiple-consumer`
4067
2. Change the values of `producerAccountId`, `consumer1AccountId`, and `consumer2AccountId` in `cdk.json`
4168
3. Install and configure the CDK: https://docs.aws.amazon.com/CDK/latest/userguide/install_config.html
69+
4. Make sure you use a role or user has proper permission in account ID: `123456789012`, and run below commands:
4270
```ruby
4371
npm run build
4472

0 commit comments

Comments
 (0)