Skip to content

Commit

Permalink
content: update snowflake webdav post
Browse files Browse the repository at this point in the history
  • Loading branch information
glenngillen committed Jan 3, 2025
1 parent b9a8719 commit 9f434f8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 30 additions & 16 deletions src/content/blog/snowflake-stage-data-webdav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ title: Access a Snowflake stage with WebDAV
codetour: true
category: Quickstarts
subcategories: Snowflake
date: '2024-10-15'
date: '2025-01-02'
description: Setup a WebDAV server inside Snowflake to access stage data with a point-to-point connection
image: /blog/snowflake-stage-data-webdav/snowflake-stage-data-webdav.png
image: /blog/snowflake-stage-data-webdav/cover.jpg
author: Glenn Gillen
authorAvatar: /blog/glenn-gillen.jpg
published: false
---

{/* <!-- vale off --> */}
Expand All @@ -19,33 +18,48 @@ published: false
{/* <!-- vale Microsoft.Contractions = NO --> */}
{/* <!-- vale Microsoft.Avoid = NO --> */}

Wouldn't it be nice to access files in a Snowflake stage, using HTTP requests, as if they were locally mounted on your machine?
Wouldn't it be even better if it was not necessary to manage IP allow lists, open firewall ports, or setup services like PrivateLink?
Would you believe me if I told you that it would take you less than 15 minutes to setup?
Wouldn't it be nice to upload and manage files in a Snowflake stage the same way
you would if they were files on your local machine? Wouldn't it be even better if
it wasn't necessary to manage IP allow lists, open firewall ports, or setup
services like PrivateLink to make that happen?

I'm about to walk you through setting this up, and it will take you less than
15 minutes to have everything working.

Introducing the Snowflake Stage Data with WebDAV Connector!

## Snowflake 💙 WebDAV
<AspectRatio maxW="50%" ratio={16 / 9}>
<iframe
src="https://www.youtube.com/embed/8un_rsg7l84?si=xwAohiLRLgw_uu73"
title="Mount your Snowflake Stage as a local filesystem"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
></iframe>
</AspectRatio>

## Quick links

WebDAV, is a protocol for authoring and exchanging documents, based on the HTTP protocol.
* [Stage data with WebDAV Connector the Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZTYZXRGOI0/ockam-stage-data-with-webdav-connector)

Snowflake is The Data Cloud and the place to support workloads such as data
warehouses, data lakes, data science / ML / AI, and even cybersecurity. This
centralization brings a huge amount of convenience through breaking down
data silos and allowing teams to make smart data-informed decisions.
## Snowflake 💙 WebDAV

WebDAV is a protocol for authoring and exchanging documents, based on the
HTTP protocol.

One way to import data into Snowflake is to use the [`snow` command line client](https://docs.snowflake.com/en/developer-guide/snowflake-cli/installation/installation)
or the [`snowflake-connector-python` Python library](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-install) to upload files and
have them be mapped to tables for later processing. Unfortunately, both those tools require a specific installation, and an OAuth authentication,
have them be mapped to tables for later processing. Unfortunately, both those
tools require a specific installation, and an OAuth authentication,
whereas HTTP commands can be easily executed with an ubiquitous utility like `curl`.

In this post I'm going to show you how to securely access a Snowflake stage in your account, with WebDAV, in just a few minutes.
We will:
In this post I'm going to show you how to securely access a Snowflake stage in
your account with WebDAV. In just a few minutes we will:

* Create a stage associated to your Snowflake account.
* Create a WebDAV server on Snowflake with a private encrypted connection.
* Upload, list, download and remove files with WebDAV commands.

* Mount the Snowflake stage as a filesystem on your local workstation.

![Snowflake stage data with WebDAV](/blog/snowflake-stage-data-webdav/snowflake-stage-data-webdav.png)

Expand Down

0 comments on commit 9f434f8

Please sign in to comment.