Skip to content

Commit 9a0ad26

Browse files
authored
feat: add STS external-id to event stream trust policy (#1656)
1 parent 153531a commit 9a0ad26

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/actions/live-events.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,24 @@ Record the ARN of the IAM role you created, for example:
5252
arn:aws:iam::123456789012:role/ory-network-event-streamer
5353
```
5454

55-
3. Attach the following trust policy to the IAM role you created in step 2:
55+
3. Attach the following trust policy to the IAM role you created in step 2, replacing `b21b757b-7d8e-4864-bb7b-800f5fad7aa6` with
56+
your project ID:
5657

57-
```json title="Trust policy (this is the same for all Ory Network customers)"
58+
```json title="Trust policy (replace b21b757b-7d8e-4864-bb7b-800f5fad7aa6 with your project ID)"
5859
{
5960
"Version": "2012-10-17",
6061
"Statement": [
6162
{
6263
"Effect": "Allow",
6364
"Principal": {
64-
"AWS": "arn:aws:iam::601538168777:user/event-streamer"
65+
"AWS": "601538168777"
6566
},
66-
"Action": "sts:AssumeRole"
67+
"Action": "sts:AssumeRole",
68+
"Condition": {
69+
"StringEquals": {
70+
"sts:ExternalId": "b21b757b-7d8e-4864-bb7b-800f5fad7aa6"
71+
}
72+
}
6773
}
6874
]
6975
}

0 commit comments

Comments
 (0)