terraformsnowflake-cloud-data-platform

Snowflake Terraform local development using browser authentication?


does anyone have a solution for Snowflake-Terraform developers to authenticate using single-sign-on browser-based authentication when running commands like terraform init or terraform plan?

We're using Github Actions for deployment and don't want to give out the credentials of a Snowflake user service account just for development. I'm hoping there is something in Terraform that similar to dbt's externalbrowser configuration.

Thanks!!


Solution

  • The Snowflake provider for Terraform does support browser auth. Set the optional parameter browser_auth equal to true in your provider configuration.

    provider "snowflake" {
        account      = "<Your Snowflake account>"
        region       = "<Your account region>"
        username     = "<Your username>"
        role         = "<Your role>"
        browser_auth = true
    }