|
If a segment file is over 10 Mb in size, the file needs to be uploaded to a Beeswax S3 bucket. Follow the instructions below for this process.
Provide IAM ARN
Wait for Confirmation
Apply ACL Policy
Beeswax will provide an ACL policy for your user:
{
"Sid": "AllowAssumeBeeswaxRole",
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::164891057361:role/customer-s3-user-list-<customer_buzz_key>"
}
Replace <customer_buzz_key>
with your actual buzz key.
Assume Role
~/.aws/config
using your AWS user to assume the specified role.Upload Segment File
s3://beeswax-data-us-east-1/user-list/<customer_buzz_key>/
--profile
option with the profile created in step 4.beeswax-data-eu-west-1
or beeswax-data-ap-northeast-1
respectively.Set File Permissions
aws s3api put-object-acl \
--profile <assumeBeeswaxRoleProfile> \
--bucket beeswax-data-us-east-1 \
--key user-list/<customer_buzz_key>/file_name.txt \
--acl bucket-owner-full-control \
--region us-east-1
Execute Segment Upload API Call
curl -X POST "https://<customer_buzz_key>.api.beeswax.com/rest/segment_upload" -b cookies.txt -d '{"segment_file_list":["s3://beeswax-data-us-east-1/user-list/<customer_buzz_key>/file_name.txt"],"account_id":2,"file_format":"DELIMITED","user_id_type":"OTHER_MOBILE_ID","segment_key_type":"DEFAULT"}'
<customer_buzz_key>
and account_id
as needed."continent":"EMEA"
in the payload.Track Progress
There are three options for the continent field: NAM, EMEA, APAC. When the continent field is not passed then it will default to NAM. |
For more information, see: