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?

Terraform Snowflake provider v1.0.3 環境変数設定

Posted at

バージョン上がったら、また環境変数の設定方法が変わってたのでメモ。
Snowflake へ、terraform用key-pair認証ユーザで接続する時の場合です。

export SNOWFLAKE_ORGANIZATION_NAME="<organization_name(XXXXXXX)>"
export SNOWFLAKE_ACCOUNT_NAME="<account_name>"
export SNOWFLAKE_USER="<user_name>"
export SNOWFLAKE_AUTHENTICATOR=SNOWFLAKE_JWT
export SNOWFLAKE_PRIVATE_KEY=$(cat ~/.ssh/snowflake_tf_snow_key.p8)
  • organization_name、account_name の取得方法
SELECT
    current_organization_name(),
    current_account_name(),
;
  • v0.90.0からの変更点

    • SNOWFLAKE_ORGANIZATION_NAME
      -> 増えた
    • SNOWFLAKE_AUTHENTICATOR
      -> JWTから SNOWFLAKE_JWT へ変更になってた
    • SNOWFLAKE_ACCOUNT_NAME
      -> SNOWFLAKE_ACCOUNT="XX99999.ap-northeast-1.aws" のスタイルからKEY名も中身も変更になってた
  • export KEY設定を間違えたときの挙動

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?