Skip to content

Commit bfa4a6c

Browse files
authored
Merge pull request #100 from segmentio/repo-sync
repo sync
2 parents 8d2458e + caa071c commit bfa4a6c

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

src/connections/storage/data-lakes/data-lakes-manual-setup.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ The following steps provide examples of the IAM Role and IAM Policy.
6666

6767
### IAM Role
6868

69-
Create a `segment-data-lake-role` role for Segment to assume. Attach the following trust relationship document to the role:
69+
Create a `segment-data-lake-role` for Segment to assume. The trust relationship document you attach to the role will be different depending on your workspace region.
70+
71+
#### IAM Role for Data Lakes created in US workspaces:
72+
73+
Attach the following trust relationship document to the role to create a `segment-data-lake-role` role for Segment:
7074

7175
```json
7276
{
@@ -98,6 +102,41 @@ Create a `segment-data-lake-role` role for Segment to assume. Attach the followi
98102
> note ""
99103
> **NOTE:** Replace the `ExternalID` list with the Segment `WorkspaceID` that contains the sources to sync to the Data Lake.
100104
105+
#### IAM Role for Data Lakes created in EU workspaces:
106+
107+
> info ""
108+
> EU workspaces are currently in beta. If you would like to learn more about the beta, please contact your account manager.
109+
110+
Attach the following trust relationship document to the role to create a `segment-data-lake-role` role for Segment.
111+
112+
```json
113+
{
114+
"Version": "2012-10-17",
115+
"Statement": [
116+
{
117+
"Sid": "",
118+
"Effect": "Allow",
119+
"Principal": {
120+
"AWS": [
121+
"arn:aws:iam::595280932656:role/segment-datalakes-production-access",
122+
]
123+
},
124+
"Action": "sts:AssumeRole",
125+
"Condition": {
126+
"StringEquals": {
127+
"sts:ExternalId": [
128+
"WORKSPACE_ID"
129+
]
130+
}
131+
}
132+
}
133+
]
134+
}
135+
```
136+
137+
> note ""
138+
> **NOTE:** Replace the `ExternalID` list with the Segment `WorkspaceID` that contains the sources to sync to the Data Lake.
139+
101140
### IAM Policy
102141

103142
Add a policy to the role created above to give Segment access to the relevant Glue databases and tables, EMR cluster, and S3.

0 commit comments

Comments
 (0)