Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 2.06 KB

set-up-retool-resource.md

File metadata and controls

48 lines (32 loc) · 2.06 KB

App Setup - Step 2: Resources in Retool

What's a Resource in Retool?

A Resource is a core concept in Retool. A Resource is a config that defines a backend data source that your Retool apps can talk to. Retool supports a variety of different kinds of backends, from databases to REST API calls, to special integrations like Stripe.

You can define a Resource once, then use it again and again in your Retool apps.

Read more about Resources in the Retool docs.

Output

The goal of this section is to create:

  • A Resource called Snowflake UAR. This will be a reusable way to hit Snowflake as the user from Step 1.

Note: The name here is important! The app code we provide expects the Resource to have this name. (You can choose to rename it, after you've finished setting everything up.)

Step 3.1 - Create the "Snowflake UAR" Resource

  1. On the Resources page (/resources) in Retool, click "Create New" in the upper right.
  2. Select the "Snowflake" resource type.
  3. Fill out the resource information as follows. (For more info, see our docs on Snowflake integration.)
Name: Snowflake UAR

Account name: <your account name>
Database name: SNOWFLAKE
Database schema: <your database schema>
Database warehouse: <your database warehouse>
User role: ACCOUNTADMIN (this role is required)

Authentication: Password (you must use password authentication)
Database username: <your database username from step 1>
Database password: <your database password from step 1>
  1. Click "Save changes".

Setting up the Snowflake resource

Summary

You now have a Snowflake resource defined in Retool, named Snowflake UAR.

Reminder: The name here is important! The app code we provide expects the Resource to have this name. (You can choose to rename it, after you've finished setting everything up.)

Now, we are ready to import our app!

Next step

Step-by-step: Set up Retool App