|
| 1 | +--- |
| 2 | +title: Connect to Snowflake |
| 3 | +permalink: /getting-started/cloud/connect-to-snowflake |
| 4 | +category: Getting Started |
| 5 | +subCategory: Cube Cloud |
| 6 | +menuOrder: 3 |
| 7 | +--- |
| 8 | + |
| 9 | +In this section, we’ll create a Cube Cloud deployment and connect it to Snowflake. |
| 10 | +A deployment represents a data model, configuration, and managed infrastructure. |
| 11 | + |
| 12 | +To continue with this guide, you'll need to have a Cube Cloud account. If you |
| 13 | +don't have one yet, [click here to sign up][cube-cloud-signup] for free. |
| 14 | + |
| 15 | +First, [sign in to your Cube Cloud account][cube-cloud-signin]. Then, |
| 16 | +click <Btn>Create Deployment</Btn>: |
| 17 | + |
| 18 | +Give the deployment a name, select the cloud provider and region of your choice, |
| 19 | +and click <Btn>Next</Btn>: |
| 20 | + |
| 21 | +<Screenshot |
| 22 | + alt="Cube Cloud Create Deployment Screen" |
| 23 | + src="https://ucarecdn.com/2338323e-0db8-4224-8e7a-3b4daf9c60ec/" |
| 24 | +/> |
| 25 | + |
| 26 | +<SuccessBox> |
| 27 | + |
| 28 | +Microsoft Azure is available in Cube Cloud on |
| 29 | +[Premium](https://cube.dev/pricing) tier. [Contact us](https://cube.dev/contact) |
| 30 | +for details. |
| 31 | + |
| 32 | +</SuccessBox> |
| 33 | + |
| 34 | +## Set up a Cube project |
| 35 | + |
| 36 | +Next, click <Btn>Create</Btn> to create a new project from scratch: |
| 37 | + |
| 38 | +<Screenshot |
| 39 | + alt="Cube Cloud Upload Project Screen" |
| 40 | + src="https://ucarecdn.com/46b72b61-b650-4271-808d-55203f1c8d8b/" |
| 41 | +/> |
| 42 | + |
| 43 | +## Connect to your Snowflake |
| 44 | + |
| 45 | +The last step is to connect Cube Cloud to Snowflake. First, select it from the grid: |
| 46 | + |
| 47 | +<Screenshot |
| 48 | + alt="Cube Cloud Setup Database Screen" |
| 49 | + src="https://ucarecdn.com/1d656ba9-dd83-4ff4-a59e-8b5f97a9ddcc/" |
| 50 | +/> |
| 51 | + |
| 52 | +Then enter your Snowflake credentials: |
| 53 | + |
| 54 | +- **Username:** Your Snowflake username. Please note, it is usually **not** your email address. |
| 55 | +- **Password:** Your Snowflake password. |
| 56 | +- **Database:** `CUBE_DEMO`, that is the database we've created in the previous step. |
| 57 | +- **Account:** Your snowflake account identifier. You can find it in your Snowflake URL as the `account_locator` part. |
| 58 | +- **Region:** Your Snowflake account region. You can find it in your Snowflake URL. If your URL includes a `cloud` part, use both the `cloud_region_id` and `cloud` together e.g. `us-east-2.aws`, otherwise just use `cloud_region_id` |
| 59 | +- **Warehouse:** `CUBE_DEMO_WH`, that is the warehouse we've created in the previous step. |
| 60 | +- **Role:** You can leave it blank. |
| 61 | + |
| 62 | +Click <Btn>Apply</Btn>, Cube Cloud will test the connection and proceed to the next step. |
| 63 | + |
| 64 | +## Generate data model from your Snowflake schema |
| 65 | + |
| 66 | +Cube can now generate a basic data model from your data warehouse schema, which helps getting started with data modeling faster. |
| 67 | +Select all four tables in our `ECOM` schema and click through the data model generation wizard. We'll inspect these generated files in the next section and start making changes to them. |
| 68 | + |
| 69 | +[aws-docs-sec-group]: |
| 70 | + https://docs.aws.amazon.com/vpc/latest/userguide/security-groups.html |
| 71 | +[aws-docs-sec-group-rule]: |
| 72 | + https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html |
| 73 | +[cube-cloud-signin]: https://cubecloud.dev/auth |
| 74 | +[cube-cloud-signup]: https://cubecloud.dev/auth/signup |
| 75 | +[ref-conf-db]: /config/databases |
| 76 | +[ref-getting-started-cloud-generate-models]: |
| 77 | + /getting-started/cloud/generate-models |
0 commit comments