SYSTEM$CONVERT_PIPES_SQS_TO_SNS

functionnot supportedData loading & unloading

docs.snowflake.com ↗

System functions

Converts all the auto-ingest pipes in the current account that load data from an S3 bucket through Amazon Simple Queue Service (SQS) notifications so that they use an Amazon Simple Notification Service (SNS) topic instead. One call converts every such pipe for the bucket; you can’t convert pipes individually. The function also subscribes the bucket’s Snowflake SQS queue to the topic. For more information, see Migrate to Amazon Simple Notification Service (SNS) and Automate Snowpipe for Amazon S3. If you’re configuring multi-location resilience, converting pipes to SNS is one step in moving pipes that use only Amazon SQS notifications (SQS-only pipes) onto a Multi-Queue Notification Integration (MQNI). If you need to recreate pipes for multi-location resilience, finish recreating them before you convert them, because recreating a converted pipe from its original definition, which specifies neither AWS_SNS_TOPIC nor INTEGRATION, makes the pipe an SQS-only pipe again. Follow the procedure in Move existing SQS-only pipes to Amazon SNS. Then use SYSTEM$CONVERT_PIPES_TO_MULTI_QUEUE to create an MQNI from the SNS topic that you passed to this function and an SNS topic in your secondary region, as described in Create the MQNI from your pipes’ queues.

Syntax

SYSTEM$CONVERT_PIPES_SQS_TO_SNS( '<bucket_name>' , '<sns_topic_arn>' )

Parameters

NameRequiredDescription
bucket_namerequiredName of the S3 bucket, without the s3:// prefix.
sns_topic_arnrequiredAmazon Resource Name (ARN) of the Amazon SNS topic.

Returns

When the conversion succeeds, the function returns the following message: If sns_topic_arn isn’t a valid SNS topic ARN, the function raises the error invalid value [<sns_topic_arn>] for parameter 'SNS topic Arn' before it converts any pipes. If the conversion fails, the function raises an error with the text Alteration to new SNS topic failed: <message>. Values of <message> include the following:

Usage notes

Access control requirements

Run this function with ACCOUNTADMIN as the primary role of your session. In an organization account, use GLOBALORGADMIN instead. Using a role that inherits ACCOUNTADMIN, or activating ACCOUNTADMIN only as a secondary role, isn’t enough.

See also

Referenced by