Exporting To S3
Exporting to an external S3 bucket
If you want to export your data to your S3 bucket, you can do so by following the steps below:
- Create a role with Custom trust policy, including the Northbeam user (below) as a Principal with the
sts:AssumeRolepermission:arn:aws:iam::892581138023:user/nb-data-orders-export-custom-sa-user
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::892581138023:user/nb-data-orders-export-custom-sa-user"
},
"Action": "sts:AssumeRole"
}
]
}- Copy the ARN of the role you created on step
1, and the name of the bucket you wish to use - Create a policy (inline in the role or standalone) providing the permissions below, just changing the placeholders
<BUCKET_NAME>and<ROLE_ARN>with the information you got from step2.PS: The action iam:SimulatePrincipalPolicy is required, as our system relies on it to validate the bucket permissions.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::<BUCKET_NAME>", // Add your bucket name
"arn:aws:s3:::<BUCKET_NAME>/*" // Add your bucket name
]
},
{
"Sid": "Statement2",
"Effect": "Allow",
"Action": ["iam:SimulatePrincipalPolicy"],
"Resource": ["<ROLE_ARN>"] // Add your role ARN
}
]
}- If you created a standalone policy, attach it to the role you created on step
2. - Provide the role ARN in each data export request through the
aws_roleparameter.
Updated 8 months ago
