{"componentChunkName":"component---src-templates-markdown-template-jsx","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-kinesis/","result":{"data":{"pageMetadata":{"title":"AWS Kinesis (Snowplow)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-kinesis/","sourceCode":null,"metadataParent":{"title":"Data Warehouses and Data Lakes","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/","sourceCode":null,"hasVersionPicker":null,"metadataChildren":[{"title":"Advanced Data Warehouse Settings","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/advanced-data-warehouse-settings/","order":5.1,"label":null},{"title":"AWS Kinesis (Snowplow)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-kinesis/","order":5.1,"label":null},{"title":"AWS Redshift (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-redshift/","order":5.2,"label":null},{"title":"AWS S3 Integration (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-s3-define-schema/","order":5.3,"label":null},{"title":"AWS S3 (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-s3-snowplow/","order":5.3,"label":null},{"title":"BigQuery (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-snowplow-schema/","order":5.4,"label":null},{"title":"BigQuery Firebase Schema","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-firebase-schema/","order":5.5,"label":null},{"title":"BigQuery (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-define-schema/","order":5.6,"label":null},{"title":"GCP BigQuery Export","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/gcp-bigquery-export/","order":5.7,"label":null},{"title":"Snowflake (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowflake-snowplow-schema/","order":5.8,"label":null},{"title":"Snowplow Schema Overview","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowplow-schema/","order":5.8,"label":null},{"title":"Snowflake (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowflake-define-schema/","order":5.9,"label":null}],"metadataParent":{"title":"Developer Docs","path":"/guides/analytics/analytics-deprecated/developer-docs/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/analytics-deprecated/developer-docs/introduction/","order":1,"label":null},{"title":"Integrations","path":"/guides/analytics/analytics-deprecated/developer-docs/integrations/","order":4,"label":null},{"title":"Data Warehouses and Data Lakes","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/","order":5,"label":null},{"title":"APIs","path":"/guides/analytics/analytics-deprecated/developer-docs/apis/","order":6,"label":null},{"title":"SDKs","path":"/guides/analytics/analytics-deprecated/developer-docs/sdks/","order":6,"label":null},{"title":"Developer Basics","path":"/guides/analytics/analytics-deprecated/developer-docs/developer-basics/","order":7,"label":null}],"metadataParent":{"title":"Analytics (Deprecated)","path":"/guides/analytics/analytics-deprecated/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/analytics-deprecated/introduction/","order":1.1,"label":null},{"title":"Developer Docs","path":"/guides/analytics/analytics-deprecated/developer-docs/","order":4,"label":null},{"title":"Identity Providers","path":"/guides/analytics/analytics-deprecated/identity-providers/","order":null,"label":null},{"title":"Settings","path":"/guides/analytics/analytics-deprecated/settings/","order":null,"label":null}],"metadataParent":{"title":"Analytics","path":"/guides/analytics/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/introduction/","order":1,"label":null},{"title":"Core Analytics (Beta)","path":"/guides/analytics/core-analytics/","order":1.1,"label":null},{"title":"Analytics Free Trial","path":"/guides/analytics/analytics-free-trial/","order":2,"label":null},{"title":"Setup","path":"/guides/analytics/setup/","order":3,"label":null},{"title":"Settings","path":"/guides/analytics/settings/","order":4,"label":null},{"title":"Analytics Data Manager","path":"/guides/analytics/data-manager/","order":5,"label":null},{"title":"Analyses","path":"/guides/analytics/analyses/","order":6,"label":null},{"title":"Query Builder","path":"/guides/analytics/query-builder/","order":6,"label":null},{"title":"User Aliasing","path":"/guides/analytics/user-aliasing/","order":7,"label":null},{"title":"Dashboards","path":"/guides/analytics/dashboards/","order":8,"label":null},{"title":"Analytics Resources","path":"/guides/analytics/resources/","order":10,"label":null},{"title":"User Segments","path":"/guides/analytics/user-segments/","order":10,"label":null},{"title":"Tutorials","path":"/guides/analytics/tutorials/","order":11,"label":null},{"title":"APIs","path":"/guides/analytics/apis/","order":12,"label":null},{"title":"Analytics (Deprecated)","path":"/guides/analytics/analytics-deprecated/","order":13,"label":null}],"metadataParent":{"title":"Guides","path":"/guides/","metadataChildren":[{"title":"Platform Overview","path":"/guides/platform-overview/","order":0.5,"label":null},{"title":"Getting Started","path":"/guides/getting-started/","order":1,"label":null},{"title":"mParticle Agent","path":"/guides/mparticle-agent/","order":1.5,"label":null},{"title":"Oversight","path":"/guides/oversight/","order":2,"label":null},{"title":"Data Platform","path":"/guides/data-platform/","order":3,"label":null},{"title":"Data Warehouse","path":"/guides/data-warehouse/","order":4,"label":null},{"title":"Customer 360","path":"/guides/customer-360/","order":5,"label":null},{"title":"Analytics","path":"/guides/analytics/","order":6,"label":null},{"title":"Audiences","path":"/guides/audiences/","order":7,"label":null},{"title":"Settings","path":"/guides/settings/","order":8,"label":null},{"title":"Troubleshooting mParticle","path":"/guides/troubleshooting/","order":10,"label":null},{"title":"Default Service Limits","path":"/guides/default-service-limits/","order":11,"label":null},{"title":"Glossary","path":"/guides/glossary/","order":12,"label":null}]}}}}}},"markdownRemark":{"html":"<aside class=\"warning\">\n<strong>Analytics Sunset</strong><br />\nWe began sunsetting mParticle Analytics on October 1, 2026. As a result, the features and workflows described on this page may no longer be available. This documentation is retained for reference. If you have questions about how this change affects your account, contact your mParticle account representative.\n</aside>\n<aside>\nNote: The information in this section pertains to legacy Analytics customers only. mParticle customers should refer to the <a href=\"/guides/data-warehouse/warehouse-sync/setup/\">Warehouse Sync Guide</a> to ingest data from third-party warehouses using mParticle's reverse-ETL solution.\n</aside>\n<h2 id=\"prerequisites\" style=\"position:relative;\"><a href=\"#prerequisites\" aria-label=\"prerequisites permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Prerequisites</h2>\n<p>The Snowplow Unified Log is stored in an S3 bucket and you are required to write an IAM policy to grant Analytics programmatic access to the respective S3 bucket.</p>\n<p>If there are additional enrichments required, such as joining with user property tables or deriving custom user_ids, please <a href=\"mailto:sales@indicative.com\">contact us</a>.</p>\n<h2 id=\"instructions\" style=\"position:relative;\"><a href=\"#instructions\" aria-label=\"instructions permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Instructions</h2>\n<p>To connect your real time Snowplow data to Analytics, follow the instructions below:</p>\n<ol>\n<li>In Analytics, click on the gear icon and select <strong>Project Settings</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/project-settings.png\" alt=\"Project Settings\"></li>\n<li>Select the <strong>Data Sources</strong> tab.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/data-sources-tab.png\" alt=\"Data Sources\"></li>\n<li>Select <strong>New Data Source</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/new-data-source.png\" alt=\"New Data Source\"></li>\n<li>Select <strong>Snowplow Kinesis</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/select-snowplow-kinesis.png\" alt=\"Select Snowplow Kinesis\"></li>\n<li>Click <strong>Next</strong>. You will need to use this <strong>API Key</strong> in step 4 of <strong>Create the Lambda Function</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/api-key.png\" alt=\"API Key\"></li>\n</ol>\n<h3 id=\"create-an-iam-role-for-the-lambda\" style=\"position:relative;\"><a href=\"#create-an-iam-role-for-the-lambda\" aria-label=\"create an iam role for the lambda permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Create an IAM Role for the Lambda</h3>\n<p>Your AWS Lambda needs to have an Execution Role that allows it to use the Kinesis Stream and CloudWatch. (For more information on setting up IAM Roles, please see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis-example-create-iam-role.html\">the official AWS tutorial</a>.)</p>\n<ol>\n<li>Go to <a href=\"https://console.aws.amazon.com/iam/\">IAM Management</a> in the Console and choose <em>Roles</em> from the sidebar.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/iam-roles.png\" alt=\"IAM Roles\"></li>\n<li>Click <em>Create role</em>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/create-role.png\" alt=\"Create Role\"></li>\n<li>For the type of trusted entity select <em>AWS Service</em> and for the service that will use this role choose <em>Lambda</em>. Click <em>Next: Permissions</em> at the bottom of the screen.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/trusted-entity.png\" alt=\"Trusted Entity\"></li>\n<li>Now you need to choose a permission policy for the role. The Lambda needs to have read access to Kinesis and write access to CloudWatch logs - for that we will choose <em>AWSLambdaKinesisExecutionRole</em>. Search for <em>AWSLambdaKinesisExecutionRole</em> in the search and mark the checkbox as shown below.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/permission-policy.png\" alt=\"Permission Policy\"></li>\n<li>Click <em>Next: Review</em> at the bottom of the screen.</li>\n<li>On the next screen provide a name for the newly created role under <em>Role Name</em>, then click <em>Create role</em> to finish the process.</li>\n</ol>\n<h3 id=\"create-the-lambda-function\" style=\"position:relative;\"><a href=\"#create-the-lambda-function\" aria-label=\"create the lambda function permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Create the Lambda Function</h3>\n<p>The Lambda function can be created either directly through AWS Console or through other tools like the AWS CLI. For this integration, the recommended memory setting is 256 MB and because the JVM has to cold start when the function is called for the first time on a new instance, you should set a high timeout value; 90 seconds should be safe.</p>\n<p>As with the IAM Role, we will be using the AWS Console to get our Lambda function up and running. <strong>Make sure you are in the same region as where your Kinesis streams are defined.</strong></p>\n<ol>\n<li>On the Console navigate to the <em>Lambda</em> section and click <em>Create a function</em> (runtime should be <em>Java 8</em>).\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/function-role.png\" alt=\"Function Role\"></li>\n<li>Write a name for your function in <em>Name</em>. In the <em>Role</em> dropdown pick <em>Choose an existing role</em>; then in the dropdown below choose the name of the role you created in the previous step. Click <em>Create function</em>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/create-function.png\" alt=\"Create Function\"></li>\n<li>\n<p>The Lambda has been created, although it does not do anything yet. We need to provide the code and configure the function:</p>\n<p>   a. Take a look at the <em>Function code</em> box. In the <em>Handler</em> textbox paste: <code class=\"language-text\">com.snowplowanalytics.indicative.LambdaHandler::recordHandler</code></p>\n<p>   b. From the <em>Code entry type</em> dropdown pick <em>Upload a file from Amazon S3</em>. A textbox labeled S3 Link URL will appear. We are hosting the code through our <a href=\"https://github.com/snowplow/snowplow/wiki/Hosted-assets#62-snowplow-indicative-relay\">hosted assets</a>. You will need to choose the S3 bucket in the same region as your AWS Lambda function: for example if your Lambda is <code class=\"language-text\">us-east-1</code> region, paste the following URL: <code class=\"language-text\">s3://snowplow-hosted-assets-us-east-1/relays/indicative/indicative-relay-0.4.0.jar</code> in the textbox. Take a look at <a href=\"https://github.com/snowplow/snowplow/wiki/Hosted-assets#7-s3-hosted-asset-bucket-per-region\">this table</a> to pick the right bucket name for your region. Make sure <em>Runtime</em> is <em>Java 8</em>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/lambda-code.png\" alt=\"Lambda Code\"></p>\n</li>\n<li>Get the <strong>API Key</strong> from step 4 from the Analytics UI.</li>\n<li>\n<p>Below <em>Function code</em> settings you will find a section called <em>Environment variables</em>.</p>\n<p>   a. In the first row, first column (the key), type <em>INDICATIVE_API_KEY</em>. In the second column (the value), paste your API Key.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/environment-variables.png\" alt=\"Environment Variables\"></p>\n<p>   b. The relay lets you configure the following filters:</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-text line-numbers\"><code class=\"language-text\">  - UNUSED_EVENTS: events that will not be relayed to Analytics;\n  - UNUSED_ATOMIC_FIELDS: fields of the [canonical](https://github.com/snowplow/snowplow/wiki/canonical-event-model) Snowplow event that will not be relayed to Analytics;\n  - UNUSED_CONTEXTS: contexts whose fields will not be relayed to Analytics.</code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span><span></span><span></span></span></pre></div>\n</li>\n</ol>\n<p>Out of the box, the relay is configured to use the following defaults:</p>\n<table>\n<thead>\n<tr>\n<th>Unused events</th>\n<th>Unused atomic fields</th>\n<th>Unused contexts</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>app_heartbeat</td>\n<td>etl_tstamp</td>\n<td>application_context</td>\n</tr>\n<tr>\n<td>app_initialized</td>\n<td>collector_tstamp</td>\n<td>application_error</td>\n</tr>\n<tr>\n<td>app_shutdown</td>\n<td>dvce_created_tstamp</td>\n<td>duplicate</td>\n</tr>\n<tr>\n<td>app_warning</td>\n<td>event</td>\n<td>geolocation_context</td>\n</tr>\n<tr>\n<td>create_event</td>\n<td>txn_id</td>\n<td>instance_identity_document</td>\n</tr>\n<tr>\n<td>emr_job_failed</td>\n<td>name_tracker</td>\n<td>java_context</td>\n</tr>\n<tr>\n<td>emr_job_started</td>\n<td>v_tracker</td>\n<td>jobflow_step_status</td>\n</tr>\n<tr>\n<td>emr_job_status</td>\n<td>v_collector</td>\n<td>parent_event</td>\n</tr>\n<tr>\n<td>emr_job_succeeded</td>\n<td>v_etl</td>\n<td>performance_timing</td>\n</tr>\n<tr>\n<td>incident</td>\n<td>user_fingerprint</td>\n<td>timing</td>\n</tr>\n<tr>\n<td>incident_assign</td>\n<td>geo_latitude</td>\n<td></td>\n</tr>\n<tr>\n<td>incident_notify_of_close</td>\n<td>geo_longitude</td>\n<td></td>\n</tr>\n<tr>\n<td>incident_notify_user</td>\n<td>ip_isp</td>\n<td></td>\n</tr>\n<tr>\n<td>job_update</td>\n<td>ip_organization</td>\n<td></td>\n</tr>\n<tr>\n<td>load_failed</td>\n<td>ip_domain</td>\n<td></td>\n</tr>\n<tr>\n<td>load_succeeded</td>\n<td>ip_netspeed</td>\n<td></td>\n</tr>\n<tr>\n<td>page_ping</td>\n<td>page_urlscheme</td>\n<td></td>\n</tr>\n<tr>\n<td>s3_notification_event</td>\n<td>page_urlport</td>\n<td></td>\n</tr>\n<tr>\n<td>send_email</td>\n<td>page_urlquery</td>\n<td></td>\n</tr>\n<tr>\n<td>send_message</td>\n<td>page_urlfragment</td>\n<td></td>\n</tr>\n<tr>\n<td>storage_write_failed</td>\n<td>refr_urlscheme</td>\n<td></td>\n</tr>\n<tr>\n<td>stream_write_failed</td>\n<td>refr_urlport</td>\n<td></td>\n</tr>\n<tr>\n<td>task_update</td>\n<td>refr_urlquery</td>\n<td></td>\n</tr>\n<tr>\n<td>wd_access_log</td>\n<td>refr_urlfragment</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>pp_xoffset_min</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>pp_xoffset_max</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>pp_yoffset_min</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>pp_yoffset_max</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_pdf</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_flash</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_java</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_director</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_quicktime</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_realplayer</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_windowsmedia</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_gears</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_features_silverlight</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_cookies</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_colordepth</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_viewwidth</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>br_viewheight</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>dvce_ismobile</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>dvce_screenwidth</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>dvce_screenheight</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>doc_charset</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>doc_width</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>doc_height</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>tr_currency</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>mkt_clickid</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>etl_tags</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>dvce_sent_tstamp</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>refr_domain_userid</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>refr_device_tstamp</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>derived_tstamp</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>event_vendor</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>event_name</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>event_format</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>event_version</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>event_fingerprint</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td>true_tstamp</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<p>To change the defaults, you can pass in your own lists of events, atomic fields or contexts to be filtered out. For example:</p>\n<table>\n<thead>\n<tr>\n<th>Environment variable key</th>\n<th>Environment variable value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNUSED_EVENTS</td>\n<td>page_ping,file_download</td>\n</tr>\n<tr>\n<td>UNUSED_ATOMIC_FIELDS</td>\n<td>name_tracker,event_vendor</td>\n</tr>\n<tr>\n<td>UNUSED_CONTEXTS</td>\n<td>performance_timing,client_context</td>\n</tr>\n</tbody>\n</table>\n<p>Similarly to setting up the API key, the first column (key) needs to be set to the specified environment variable name in ALLCAPS. The second column (value) is your own list as a comma-separated string with no spaces.</p>\n<p>If you only specify the environment variable name but do not provide a list of values, then nothing will be filtered out.</p>\n<p>If you do not set any of the environment variables, the defaults will be used.</p>\n<ol start=\"6\">\n<li>Scroll down a bit and take a look at the <em>Basic settings</em> box. There you can set memory and timeout limits for the Lambda. As mentioned earlier, we recommend setting 256 MB of memory or higher (on AWS Lambda the CPU performance scales linearly with the amount of memory) and a high timeout time of 1 minute 30 seconds.</li>\n</ol>\n<p><img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/basic-settings.png\" alt=\"Basic Settings\">\nkinesis</p>\n<ol start=\"7\">\n<li>As a final step, add your Snowplow enriched Kinesis stream as an event source for the Lambda function. You can follow <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis-example-configure-event-source.html\">the official AWS tutorial</a> if you are using AWS CLI or do it directly from the AWS Console using the following instructions. Scroll to the top of the page and from the list of triggers in the <em>Designer</em> configuration up top, choose <em>Kinesis</em>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/kinesis-trigger.png\" alt=\"Kinesis Trigger\"></li>\n</ol>\n<p>Take a look at the <em>Configure</em> triggers section which just appeared below. Choose your Kinesis stream that contains Snowplow enriched events. Set the batch size to your liking - 100 is a reasonable setting. Note that this is a <em>maximum</em> batch size, the function can be triggered with fewer records. For the starting position we recommend <em>Trim horizon</em>, which starts processing the stream from an observable start (Alternatively, you can select <em>At timestamp</em> to start sending data from a particular date). Click the <em>Add</em> button to finish the trigger configuration. Make sure <em>Enable trigger</em> is selected.</p>\n<p><img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/configure-triggers.png\" alt=\"Basic Settings\"></p>\n<ol start=\"8\">\n<li>Save the changes by clicking the <em>Save</em> button in the top-right part of the page.</li>\n</ol>\n<h3 id=\"validate-your-data\" style=\"position:relative;\"><a href=\"#validate-your-data\" aria-label=\"validate your data permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Validate Your Data</h3>\n<p>Go to your <a href=\"http://app.indicative.com\">Indicative project</a> to check if you are receiving data. You can also go to the <a href=\"https://app.indicative.com/#/debug/console\">debug console</a> to troubleshoot the relay in real time.</p>","frontmatter":{"title":"AWS Kinesis (Snowplow)","order":5.1,"seoTitle":null,"seoDescription":null},"parent":{"__typename":"File","modifiedTime":"October 12, 2026"}}},"pageContext":{"slug":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-kinesis/"}},"staticQueryHashes":["2950460867"]}