Accelerate the Value of Data

Configure event notifications

Learn how to configure event notifications for your S3 bucket to notify Snowpipe when new data is available to load.

Snowflake manages the Snowpipe queues you use. The queue name must be in the required event notification, so when we push any object to the bucket a notification is sent to the SQS queue. Snowpipe then consumes data and it is loaded to a single table. For more information, see topic Introduction to Snowpipe.

To configure event notifications in your Snowflake environment:
  1. In the worksheet area, run the show pipes command. The value in the notification_channel column is the SQS queue created by Snowflake that is used to create notifications from the S3 bucket. Snowflake then downloads new files when they are available and loads it to the target table.
  2. Log in to the Amazon S3 console.
  3. In the Console home page, select S3.
  4. In the Buckets page, select the name of the bucket that you want to enable events for.
  5. Select the Properties tab.
  6. Scroll down to the Event Notifications section and select Create event notification.
  7. In the Create event notification page, provide the following details for your event notification:
    1. Name: In the General configuration section, enter a name for the event notification. For example: Auto-ingest Snowflake.
    2. Event type: In the Event types section, select All object create events.
    3. Destination: In the Destination section, select SQS queue.
      1. Specify SQS queue: select Enter SQS queue ARN.
      2. SQS queue: Enter the value in the notification_channel column from step 1. For example: arn:aws:sqs:us-east-1:713795429718:sf-snowpipe-AIDA2MMMF4VLMNI5KESTV-bHVbiwsnUnY6icU-zr52Q. For more information, see topic Enabling and configuring event notifications.
  8. Grant the permissions mentioned in Automating Snowpipe for Amazon S3 to complete the configuration.
The Snowflake-provided virtual warehouse now loads data from the S3 bucket into the target Snowflake table using Snowpipe every time an event is created in Snowpipe. The auto-ingestion feature is enabled any time files are uploaded into the S3 bucket.

After you've configured event notifications in the SQS queue, enable error notifications in the SNS queue. The Amazon Simple Notification Service (SNS) web service makes it easy to set up, operate, and send notifications to Snowflake. For more information, see topic Enabling error notifications.