Send event data to AWS S3 CSV
Configuration
Option | Description |
---|---|
IAM Role ARN Type: string Required: True | IAM role ARN with write permissions to the S3 bucket. Format: arn:aws:iam::account-id:role/role-name |
AWS Bucket Name Type: string Required: True | Name of the S3 bucket where the files will be uploaded to. |
AWS Region Code (S3 only) Type: string Required: True | Region Code where the S3 bucket is hosted. See AWS S3 Documentation |
IAM External ID Type: string Required: True | The External ID to your IAM role. Generate a secure string and treat it like a password. |
Debug Mode Type: boolean Required: False | Will log configuration and request details |
Using our REST API you can create this destination like so:
Terminal
# Create a new destinationcurl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \--data '{"type": "destination","name": "AWS S3 CSV","inputs": {"iam_role_arn": {"value": ""},"s3_aws_bucket_name": {"value": ""},"s3_aws_region": {"value": ""},"iam_external_id": {"value": ""}},"enabled": true,"template_id": "segment-actions-s3-csv"}'