0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS閉鎖網+Snowflake 外部ストレージ

0
Posted at

外部ストレージの作成

構成

外部ストレージをアタッチするにあたりの検証です。

①開通
②検証
③料金などのデメリットについて

このあたりで攻めていきます。

接続設定

★Snowflakeにて作業

USE ROLE ACCOUNTADMIN;

SELECT SYSTEM$PROVISION_PRIVATELINK_ENDPOINT(
    'com.amazonaws.ap-northeast-1.s3',
    '*.s3.ap-northeast-1.amazonaws.com');

image.png

snowflake_endpoint_nameの値)を取得

SELECT SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO();


["{\"provider_service_name\":\"com.amazonaws.ap-northeast-1.s3\",\"snowflake_endpoint_name\":\"vpce-XXXXXXXXXXXXXXXX\",\"endpoint_state\":\"CREATED\",\"host\":\"*.s3.ap-northeast-1.amazonaws.com\",\"status\":\"pending\"}"]

バケットポリシーを作成

★AWS側で作業

ポリシー作成

Snowflake-gaibu-bucket-policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:GetBucketLocation",
                "s3:GetObjectVersion",
                "s3:DeleteObject",
                "s3:PutObject"
            ],
            "Resource": [
                "arn:aws:s3:::<バケット名>",
                "arn:aws:s3:::<バケット名>/*"
            ]
        }
    ]
}

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?