Publishing to Posit Connect in Snowpark Container Services

Posit Connect in Snowpark Container Services is currently in private preview. Email for more information.

Prerequisites

  • The address of your Posit Connect deployment https://example-accountname.snowflakecomputing.app/
  • A connections.toml or config.toml file containing your Snowflake credentials
    • See the Snowflake documentation for more information on creating these files and their contents
    • Only keypair (SNOWFLAKE_JWT) and OAuth authenticators are supported

From the RStudio IDE

Important

The UI-driven account registration flow is not currently supported; you must set up publishing by running the following from the console. Once the connection is established, push-button publishing can proceed as normal.

Using rsconnect >= 1.5.0,

rsconnect::addServer(
  "https://example-accountname.snowflakecomputing.app", 
  name = "example", 
  snowflakeConnectionName = "example-connection"
  )
 rsconnect::connectSPCSUser(server = "example", snowflakeConnectionName = "example-connection")

From the command-line interface

Using rsconnect-python > 1.26.0

python -m pip install 'rsconnect[snowflake]'
rsconnect add \
  --server https://example-accountname.snowflakecomputing.app \
  --snowflake-connection-name example-connection \
  --name example

From Posit Publisher

Using Publisher version >= 1.16.0 in VS Code or Positron:

Command Palette > Posit Publisher: New Credential

Provide the address of your Posit Connect server and press ‘Enter’. Publisher will discover and test your configured Snowflake credentials and prompt you to choose one. Name and save the credential, and then proceed to deploy your content as normal.