Configuring Access And Permissions

GCS Bucket Configuration

Create a bucket in GCP cloud storage and assign the service account
[email protected] the following roles:
Storage Object Creator and Storage Object Viewer

Use the created bucket for your Cloud Import Connector.

AWS S3 Bucket Configuration

All imports from AWS to Mixpanel require that you create a new data access policy, or add the following permissions to an existing data access policy.
Go to the IAM service in AWS and create a policy.

Click the JSON on the right and parse this code to create policy required (please replace <bucket_name> with S3 bucket name):

{
    "Version": "2012-10-17",
    "Statement": [{
        "Sid": "MixpanelObjectAccess",
        "Effect": "Allow",
        "Action": [
            "s3:PutObject",
            "s3:GetObject",
            "s3:ListBucket",
            "s3:HeadBucket"

        ],
        "Resource": [
            "arn:aws:s3:::<bucket-name>/*",
            "arn:aws:s3:::<bucket-name>"
        ]
    }]
}

After creating the policy above, you need to create a cross-account IAM Role to assign the policies to the role.

  1. Go to the AWS IAM service on the console
  2. Click Roles in the sidebar
  3. Click Create Role
  4. Select Other AWS Accounts on the trust policy page and enter 485438090326 for the account ID
  5. In the Permissions page, find and select the policies you created above
  6. In the Review page, enter a name and description for the role and click Create Role

Next, limit the trust relationship to the Mixpanel export user to ensure only Mixpanel has the ability to assume this specific role.

  1. Navigate to the AWS IAM service in the console
  2. Click Roles in the sidebar
  3. Find and click the role you just created
  4. Navigate to the Trust Relationships tab
  5. Click Edit trust relationship
  6. Replace the contents with the following JSON:
    {
        "Version": "2012-10-17",
        "Statement": [{
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::485438090326:user/mixpanel-export"
            },
            "Action": "sts:AssumeRole",
            "Condition": {}
        }]
    }
    

Updated 17 days ago

Configuring Access And Permissions


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.