2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Snowflakeにてユーザー別にパブリックIP制限を実施する方法について

Posted at

概要

Snowflakeでは、アカウント(サイト全体)単位とユーザー単位でそれぞれ接続元IPアドレスを制限できるため、ユーザー単位での簡易的な手順を紹介します。

下記ドキュメントにて、アカウント単位とユーザー単位で制限を設定でき、その手順が紹介されております。
image.png

引用元:ネットワークポリシー

手順

1.ACCOUNTADMINでログイン後、"Account" -> "Polices" -> "Create"にて、ネットワークポリシーを作成。

image.png

SQLとしては下記です。

CREATE NETWORK POLICY AZUREANALYSISSERVICES ALLOWED_IP_LIST=('113.197.228.100') BLOCKED_IP_LIST=();

2.IP制限を実施したいユーザーに対して、SQLにてネットワークポリシーを設定。

use role accountadmin;
ALTER USER AASUSER SET NETWORK_POLICY = 'AZUREANALYSISSERVICES';

3.ネットワークポリシー違反となるIPアドレスからログイン後、接続できないことを確認。
image.png

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?