Question

Trail Pipeline Export AWS S3 Error

  • 3 August 2022
  • 1 reply
  • 39 views

I am trying to create a trail pipeline to export the data to S3
I am using 

  • Service Account Creds
  • Create a Policy in my AWS account
  • Create a role and attached the policy to it and Trusted the account 485438090326

When I go about creating the trail pipeline, I receive an error which says

"Error": "failed to verify permissions. AccessDenied: User: arn:aws:iam::485438090326:user/mixpanel-export is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam:ap-south-1:<my-account-id>:role/mixpanel-s3-bucket-access-role\n\tstatus code: 403, request id: c8fa952a-0c1f-4f5b-96d4-5bcd7a0108b4"
 


1 reply

I was getting this error too because I was using the Mixpanel Project ID instead of the Project Token in the IAM Policy. Ensure that you are using the Mixpanel Project Token in the IAM Policy condition where you check that the passed external id is in fact your Mixpanel project token.

A project's token can be found in the Access Keys section of a project's settings overview page: https://mixpanel.com/settings/project/.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::485438090326:user/mixpanel-export"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<MIXPANEL_PROJECT_TOKEN>"
}
}
}
]
}

 

Reply