diff --git a/docs/data-sources/database.md b/docs/data-sources/database.md index 40924aca18..e43d459a54 100644 --- a/docs/data-sources/database.md +++ b/docs/data-sources/database.md @@ -14,7 +14,7 @@ description: |- ```terraform data "snowflake_database" "this" { - name = "DEMO_DB" + name = "DEMO_DB" } ``` diff --git a/docs/data-sources/external_functions.md b/docs/data-sources/external_functions.md index 79b0d59db4..2dd93021f0 100644 --- a/docs/data-sources/external_functions.md +++ b/docs/data-sources/external_functions.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_external_functions" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/external_tables.md b/docs/data-sources/external_tables.md index df3187a284..ec4a589c1d 100644 --- a/docs/data-sources/external_tables.md +++ b/docs/data-sources/external_tables.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_external_tables" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/file_formats.md b/docs/data-sources/file_formats.md index 3f7633abb3..afcc04b540 100644 --- a/docs/data-sources/file_formats.md +++ b/docs/data-sources/file_formats.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_file_formats" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/functions.md b/docs/data-sources/functions.md index e275daf9db..e58a9cf1c6 100644 --- a/docs/data-sources/functions.md +++ b/docs/data-sources/functions.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_functions" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/masking_policies.md b/docs/data-sources/masking_policies.md index 884eed72e6..c90515eee3 100644 --- a/docs/data-sources/masking_policies.md +++ b/docs/data-sources/masking_policies.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_masking_policies" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/materialized_views.md b/docs/data-sources/materialized_views.md index a36bfe2b82..dfc9ef9543 100644 --- a/docs/data-sources/materialized_views.md +++ b/docs/data-sources/materialized_views.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_materialized_views" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/pipes.md b/docs/data-sources/pipes.md index 7469290d5a..664a31338d 100644 --- a/docs/data-sources/pipes.md +++ b/docs/data-sources/pipes.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_pipes" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/procedures.md b/docs/data-sources/procedures.md index 8aef133bb5..5b567f4fb4 100644 --- a/docs/data-sources/procedures.md +++ b/docs/data-sources/procedures.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_procedures" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/role.md b/docs/data-sources/role.md index e98cf116e1..cab6a28183 100644 --- a/docs/data-sources/role.md +++ b/docs/data-sources/role.md @@ -14,7 +14,7 @@ description: |- ```terraform data "snowflake_role" "this" { - name = "role1" + name = "role1" } ``` diff --git a/docs/data-sources/row_access_policies.md b/docs/data-sources/row_access_policies.md index 4ce84c31c9..aeb975f87a 100644 --- a/docs/data-sources/row_access_policies.md +++ b/docs/data-sources/row_access_policies.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_row_access_policies" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/schemas.md b/docs/data-sources/schemas.md index 4a0660b78a..dd90fe336e 100644 --- a/docs/data-sources/schemas.md +++ b/docs/data-sources/schemas.md @@ -14,7 +14,7 @@ description: |- ```terraform data "snowflake_schemas" "current" { - database = "MYDB" + database = "MYDB" } ``` diff --git a/docs/data-sources/sequences.md b/docs/data-sources/sequences.md index 65d85bdcd8..35861b7ef2 100644 --- a/docs/data-sources/sequences.md +++ b/docs/data-sources/sequences.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_sequences" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/stages.md b/docs/data-sources/stages.md index 7332d42c0f..5d641d6c53 100644 --- a/docs/data-sources/stages.md +++ b/docs/data-sources/stages.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_stages" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/streams.md b/docs/data-sources/streams.md index 7e2e800b00..7f41a66f36 100644 --- a/docs/data-sources/streams.md +++ b/docs/data-sources/streams.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_streams" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/system_generate_scim_access_token.md b/docs/data-sources/system_generate_scim_access_token.md index 5e61271b62..e176949460 100644 --- a/docs/data-sources/system_generate_scim_access_token.md +++ b/docs/data-sources/system_generate_scim_access_token.md @@ -14,7 +14,7 @@ description: |- ```terraform data "snowflake_system_generate_scim_access_token" "scim" { - integration_name = "AAD_PROVISIONING" + integration_name = "AAD_PROVISIONING" } ``` diff --git a/docs/data-sources/tables.md b/docs/data-sources/tables.md index d72c438349..1ad64ed0e7 100644 --- a/docs/data-sources/tables.md +++ b/docs/data-sources/tables.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_tables" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/tasks.md b/docs/data-sources/tasks.md index 38bad6423a..1f06773350 100644 --- a/docs/data-sources/tasks.md +++ b/docs/data-sources/tasks.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_tasks" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/data-sources/users.md b/docs/data-sources/users.md index f8d18cc8f6..6ea8efaf71 100644 --- a/docs/data-sources/users.md +++ b/docs/data-sources/users.md @@ -14,7 +14,7 @@ description: |- ```terraform data "snowflake_users" "current" { - pattern = "user1" + pattern = "user1" } ``` diff --git a/docs/data-sources/views.md b/docs/data-sources/views.md index 5e2e9cac83..77af53ec7b 100644 --- a/docs/data-sources/views.md +++ b/docs/data-sources/views.md @@ -14,8 +14,8 @@ description: |- ```terraform data "snowflake_views" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } ``` diff --git a/docs/index.md b/docs/index.md index f05e200b4d..0c8dcee945 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,8 +31,8 @@ provider "snowflake" { oauth_redirect_url = "..." // optional - role = "..." - host = "..." + role = "..." + host = "..." warehouse = "..." } ``` diff --git a/docs/resources/api_integration.md b/docs/resources/api_integration.md index 5d69526386..e05a3471c0 100644 --- a/docs/resources/api_integration.md +++ b/docs/resources/api_integration.md @@ -14,11 +14,11 @@ description: |- ```terraform resource "snowflake_api_integration" "api_integration" { - name = "aws_integration" - api_provider = "aws_api_gateway" - api_aws_role_arn = "arn:aws:iam::000000000001:/role/test" + name = "aws_integration" + api_provider = "aws_api_gateway" + api_aws_role_arn = "arn:aws:iam::000000000001:/role/test" api_allowed_prefixes = ["https://123456.execute-api.us-west-2.amazonaws.com/prod/"] - enabled = true + enabled = true } ``` diff --git a/docs/resources/external_function.md b/docs/resources/external_function.md index 3cb74b8ad4..6ed19aedc6 100644 --- a/docs/resources/external_function.md +++ b/docs/resources/external_function.md @@ -14,7 +14,7 @@ description: |- ```terraform resource "snowflake_external_function" "test_ext_func" { - name = "my_function" + name = "my_function" database = "my_test_db" schema = "my_test_schema" arg { @@ -25,9 +25,9 @@ resource "snowflake_external_function" "test_ext_func" { name = "arg2" type = "varchar" } - return_type = "variant" - return_behavior = "IMMUTABLE" - api_integration = "api_integration_name" + return_type = "variant" + return_behavior = "IMMUTABLE" + api_integration = "api_integration_name" url_of_proxy_and_resource = "https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func" } ``` diff --git a/docs/resources/external_oauth_integration.md b/docs/resources/external_oauth_integration.md index 3306df6a47..b3b743fe9c 100644 --- a/docs/resources/external_oauth_integration.md +++ b/docs/resources/external_oauth_integration.md @@ -14,14 +14,14 @@ description: |- ```terraform resource "snowflake_external_oauth_integration" "azure" { - name = "AZURE_POWERBI" - type = "AZURE" - enabled = true - issuer = "https://sts.windows.net/00000000-0000-0000-0000-000000000000" + name = "AZURE_POWERBI" + type = "AZURE" + enabled = true + issuer = "https://sts.windows.net/00000000-0000-0000-0000-000000000000" snowflake_user_mapping_attribute = "LOGIN_NAME" - jws_keys_urls = ["https://login.windows.net/common/discovery/keys"] - audience_urls = ["https://analysis.windows.net/powerbi/connector/Snowflake"] - token_user_mapping_claims = ["upn"] + jws_keys_urls = ["https://login.windows.net/common/discovery/keys"] + audience_urls = ["https://analysis.windows.net/powerbi/connector/Snowflake"] + token_user_mapping_claims = ["upn"] } ``` diff --git a/docs/resources/external_table_grant.md b/docs/resources/external_table_grant.md index e13515c6ae..391d30d92f 100644 --- a/docs/resources/external_table_grant.md +++ b/docs/resources/external_table_grant.md @@ -19,7 +19,7 @@ resource "snowflake_external_table_grant" "grant" { external_table_name = "external_table" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/docs/resources/failover_group.md b/docs/resources/failover_group.md index 45ff255968..8e70f2f495 100644 --- a/docs/resources/failover_group.md +++ b/docs/resources/failover_group.md @@ -18,15 +18,15 @@ resource "snowflake_database" "db" { } resource "snowflake_failover_group" "source_failover_group" { - name = "FG1" - object_types = ["WAREHOUSES","DATABASES", "INTEGRATIONS", "ROLES"] - allowed_accounts= ["", ""] - allowed_databases = [snowflake_database.db.name] + name = "FG1" + object_types = ["WAREHOUSES", "DATABASES", "INTEGRATIONS", "ROLES"] + allowed_accounts = ["", ""] + allowed_databases = [snowflake_database.db.name] allowed_integration_types = ["SECURITY INTEGRATIONS"] replication_schedule { cron { expression = "0 0 10-20 * TUE,THU" - time_zone = "UTC" + time_zone = "UTC" } } } @@ -37,11 +37,11 @@ provider "snowflake" { resource "snowflake_failover_group" "target_failover_group" { provider = snowflake.account2 - name = "FG1" + name = "FG1" from_replica { - organization_name = "..." + organization_name = "..." source_account_name = "..." - name = snowflake_failover_group.fg.name + name = snowflake_failover_group.fg.name } } ``` diff --git a/docs/resources/file_format_grant.md b/docs/resources/file_format_grant.md index 4521693c19..d3d74b3bef 100644 --- a/docs/resources/file_format_grant.md +++ b/docs/resources/file_format_grant.md @@ -14,12 +14,12 @@ description: |- ```terraform resource "snowflake_file_format_grant" "grant" { - database_name = "database" - schema_name = "schema" - file_format_name = "file_format" + database_name = "database" + schema_name = "schema" + file_format_name = "file_format" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/docs/resources/function.md b/docs/resources/function.md index 5e393887d2..dc661b0bb3 100644 --- a/docs/resources/function.md +++ b/docs/resources/function.md @@ -15,12 +15,12 @@ description: |- ```terraform // Provider configuration provider "snowflake" { - region = "REGION" // Default is "us-west-2" + region = "REGION" // Default is "us-west-2" username = "USERNAME" account = "ACCOUNT" password = "PASSWORD" role = "MY_ROLE" - warehouse = "MY_WH" // Optional attribute, some resources (e.g. Python UDFs)' require a warehouse to create and can also be set optionally from the `SNOWFLAKE_WAREHOUSE` environment variable + warehouse = "MY_WH" // Optional attribute, some resources (e.g. Python UDFs)' require a warehouse to create and can also be set optionally from the `SNOWFLAKE_WAREHOUSE` environment variable } // Create database @@ -38,37 +38,37 @@ resource "snowflake_schema" "schema" { // Example for Java language resource "snowflake_function" "test_funct_java" { - name = "my_java_func" - database = "MY_DB" - schema = "MY_SCHEMA" - arguments { - name = "arg1" - type = "number" - } - comment = "Example for java language" - return_type = "varchar" - language = "java" - handler = "CoolFunc.test" - statement = "class CoolFunc {public static String test(int n) {return \"hello!\";}}" + name = "my_java_func" + database = "MY_DB" + schema = "MY_SCHEMA" + arguments { + name = "arg1" + type = "number" + } + comment = "Example for java language" + return_type = "varchar" + language = "java" + handler = "CoolFunc.test" + statement = "class CoolFunc {public static String test(int n) {return \"hello!\";}}" } // Example for Python language resource "snowflake_function" "python_test" { - name = "MY_PYTHON_FUNC" - database = "MY_DB" - schema = "MY_SCHEMA" - arguments { - name = "arg1" - type = "number" - } - comment = "Example for Python language" - return_type = "NUMBER(38,0)" - null_input_behavior = "CALLED ON NULL INPUT" - return_behavior = "VOLATILE" - language = "python" - runtime_version = "3.8" - handler = "add_py" - statement = "def add_py(i): return i+1" + name = "MY_PYTHON_FUNC" + database = "MY_DB" + schema = "MY_SCHEMA" + arguments { + name = "arg1" + type = "number" + } + comment = "Example for Python language" + return_type = "NUMBER(38,0)" + null_input_behavior = "CALLED ON NULL INPUT" + return_behavior = "VOLATILE" + language = "python" + runtime_version = "3.8" + handler = "add_py" + statement = "def add_py(i): return i+1" } ``` diff --git a/docs/resources/function_grant.md b/docs/resources/function_grant.md index 6a4e14f165..a174a4f979 100644 --- a/docs/resources/function_grant.md +++ b/docs/resources/function_grant.md @@ -14,9 +14,9 @@ description: |- ```terraform resource "snowflake_function_grant" "grant" { - database_name = "database" - schema_name = "schema" - function_name = "function" + database_name = "database" + schema_name = "schema" + function_name = "function" arguments { name = "a" @@ -29,7 +29,7 @@ resource "snowflake_function_grant" "grant" { return_type = "string" privilege = "USAGE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/docs/resources/materialized_view_grant.md b/docs/resources/materialized_view_grant.md index 51b162dcec..e80cb5401f 100644 --- a/docs/resources/materialized_view_grant.md +++ b/docs/resources/materialized_view_grant.md @@ -19,7 +19,7 @@ resource "snowflake_materialized_view_grant" "grant" { materialized_view_name = "materialized_view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/docs/resources/pipe_grant.md b/docs/resources/pipe_grant.md index d41e364f9d..944239e70b 100644 --- a/docs/resources/pipe_grant.md +++ b/docs/resources/pipe_grant.md @@ -19,7 +19,7 @@ resource "snowflake_pipe_grant" "grant" { pipe_name = "pipe" privilege = "OPERATE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/docs/resources/procedure_grant.md b/docs/resources/procedure_grant.md index b392bc7bc7..279c906772 100644 --- a/docs/resources/procedure_grant.md +++ b/docs/resources/procedure_grant.md @@ -14,9 +14,9 @@ description: |- ```terraform resource "snowflake_procedure_grant" "grant" { - database_name = "database" - schema_name = "schema" - procedure_name = "procedure" + database_name = "database" + schema_name = "schema" + procedure_name = "procedure" arguments { name = "a" @@ -29,7 +29,7 @@ resource "snowflake_procedure_grant" "grant" { return_type = "string" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/docs/resources/role_grants.md b/docs/resources/role_grants.md index 2c05a45630..e5cd1b58a9 100644 --- a/docs/resources/role_grants.md +++ b/docs/resources/role_grants.md @@ -33,15 +33,15 @@ resource "snowflake_role" "other_role" { } resource "snowflake_role_grants" "grants" { - role_name = "${snowflake_role.role.name}" + role_name = snowflake_role.role.name roles = [ - "${snowflake_role.other_role.name}", + snowflake_role.other_role.name, ] users = [ - "${snowflake_user.user.name}", - "${snowflake_user.user2.name}", + snowflake_user.user.name, + snowflake_user.user2.name, ] } ``` diff --git a/docs/resources/row_access_policy.md b/docs/resources/row_access_policy.md index b4ca52339a..56b90a4373 100644 --- a/docs/resources/row_access_policy.md +++ b/docs/resources/row_access_policy.md @@ -14,10 +14,10 @@ description: |- ```terraform resource "snowflake_row_access_policy" "example_row_access_policy" { - name = "EXAMPLE_ROW_ACCESS_POLICY" - database = "EXAMPLE_DB" - schema = "EXAMPLE_SCHEMA" - signature = { + name = "EXAMPLE_ROW_ACCESS_POLICY" + database = "EXAMPLE_DB" + schema = "EXAMPLE_SCHEMA" + signature = { A = "VARCHAR", B = "VARCHAR" } diff --git a/docs/resources/row_access_policy_grant.md b/docs/resources/row_access_policy_grant.md index b4222081b9..599e2ec939 100644 --- a/docs/resources/row_access_policy_grant.md +++ b/docs/resources/row_access_policy_grant.md @@ -19,7 +19,7 @@ resource "snowflake_row_access_policy_grant" "grant" { row_access_policy_name = "row_access_policy" privilege = "APPLY" - roles = ["role1", "role2"] + roles = ["role1", "role2"] with_grant_option = false } diff --git a/docs/resources/saml_integration.md b/docs/resources/saml_integration.md index b73c0865e2..68e3bcadeb 100644 --- a/docs/resources/saml_integration.md +++ b/docs/resources/saml_integration.md @@ -14,12 +14,12 @@ description: |- ```terraform resource "snowflake_saml_integration" "saml_integration" { - name = "saml_integration" - saml2_provider = "CUSTOM" - saml2_issuer = "test_issuer" - saml2_sso_url = "https://testsamlissuer.com" + name = "saml_integration" + saml2_provider = "CUSTOM" + saml2_issuer = "test_issuer" + saml2_sso_url = "https://testsamlissuer.com" saml2_x509_cert = "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiMD6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO" - enabled = true + enabled = true } ``` diff --git a/docs/resources/sequence.md b/docs/resources/sequence.md index bf73093857..f4738a755f 100644 --- a/docs/resources/sequence.md +++ b/docs/resources/sequence.md @@ -14,18 +14,18 @@ description: |- ```terraform resource "snowflake_database" "database" { - name = "things" + name = "things" } resource "snowflake_schema" "test_schema" { - name = "things" - database = snowflake_database.test_database.name + name = "things" + database = snowflake_database.test_database.name } resource "snowflake_sequence" "test_sequence" { - database = snowflake_database.test_database.name - schema = snowflake_schema.test_schema.name - name = "thing_counter" + database = snowflake_database.test_database.name + schema = snowflake_schema.test_schema.name + name = "thing_counter" } ``` diff --git a/docs/resources/sequence_grant.md b/docs/resources/sequence_grant.md index 2f7c1f9c16..0233a292f9 100644 --- a/docs/resources/sequence_grant.md +++ b/docs/resources/sequence_grant.md @@ -19,7 +19,7 @@ resource "snowflake_sequence_grant" "grant" { sequence_name = "sequence" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/docs/resources/stream_grant.md b/docs/resources/stream_grant.md index 3f737b76c3..b24a5dcd9e 100644 --- a/docs/resources/stream_grant.md +++ b/docs/resources/stream_grant.md @@ -19,7 +19,7 @@ resource "snowflake_stream_grant" "grant" { stream_name = "view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/docs/resources/table_constraint.md b/docs/resources/table_constraint.md index 4297a5fc72..6257e313b8 100644 --- a/docs/resources/table_constraint.md +++ b/docs/resources/table_constraint.md @@ -18,14 +18,14 @@ resource "snowflake_database" "d" { } resource "snowflake_schema" "s" { - name = "some_schema" - database = snowflake_database.d.name + name = "some_schema" + database = snowflake_database.d.name } resource "snowflake_table" "t" { - database = snowflake_database.d.name - schema = snowflake_schema.s.name - name = "some_table" + database = snowflake_database.d.name + schema = snowflake_schema.s.name + name = "some_table" column { name = "col1" @@ -33,7 +33,7 @@ resource "snowflake_table" "t" { nullable = false } - column { + column { name = "col2" type = "text" nullable = false @@ -47,9 +47,9 @@ resource "snowflake_table" "t" { } resource "snowflake_table" "fk_t" { - database = snowflake_database.d.name - schema = snowflake_schema.s.name - name = "fk_table" + database = snowflake_database.d.name + schema = snowflake_schema.s.name + name = "fk_table" column { name = "fk_col1" @@ -57,7 +57,7 @@ resource "snowflake_table" "fk_t" { nullable = false } - column { + column { name = "fk_col2" type = "text" nullable = false @@ -65,28 +65,28 @@ resource "snowflake_table" "fk_t" { } resource "snowflake_table_constraint" "primary_key" { - name="myconstraint" - type="PRIMARY KEY" + name = "myconstraint" + type = "PRIMARY KEY" table_id = snowflake_table.t.id - columns = ["col1"] - comment = "hello world" + columns = ["col1"] + comment = "hello world" } resource "snowflake_table_constraint" "foreign_key" { - name="myconstraintfk" - type="FOREIGN KEY" + name = "myconstraintfk" + type = "FOREIGN KEY" table_id = snowflake_table.t.id - columns = ["col2"] + columns = ["col2"] foreign_key_properties { references { table_id = snowflake_table.fk_t.id - columns = ["fk_col1"] + columns = ["fk_col1"] } } - enforced = false + enforced = false deferrable = false - initially = "IMMEDIATE" - comment = "hello fk" + initially = "IMMEDIATE" + comment = "hello fk" } resource "snowflake_table_constraint" "unique" { diff --git a/docs/resources/tag_masking_policy_association.md b/docs/resources/tag_masking_policy_association.md index aca1c17409..3fa0429ab1 100644 --- a/docs/resources/tag_masking_policy_association.md +++ b/docs/resources/tag_masking_policy_association.md @@ -54,8 +54,8 @@ resource "snowflake_masking_policy" "example_masking_policy" { } resource "snowflake_tag_masking_policy_association" "name" { - tag_id = snowflake_tag.this.id - masking_policy_id = snowflake_masking_policy.example_masking_policy.id + tag_id = snowflake_tag.this.id + masking_policy_id = snowflake_masking_policy.example_masking_policy.id } ``` diff --git a/docs/resources/task_grant.md b/docs/resources/task_grant.md index 582bffc71d..0b1a7744e4 100644 --- a/docs/resources/task_grant.md +++ b/docs/resources/task_grant.md @@ -16,10 +16,10 @@ description: |- resource "snowflake_task_grant" "grant" { database_name = "database" schema_name = "schema" - task_name = "task" + task_name = "task" privilege = "OPERATE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/docs/resources/view_grant.md b/docs/resources/view_grant.md index 8b8536c38f..ae96dc5925 100644 --- a/docs/resources/view_grant.md +++ b/docs/resources/view_grant.md @@ -19,7 +19,7 @@ resource "snowflake_view_grant" "grant" { view_name = "view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/examples/data-sources/snowflake_database/data-source.tf b/examples/data-sources/snowflake_database/data-source.tf index ff46367580..79b57b9519 100644 --- a/examples/data-sources/snowflake_database/data-source.tf +++ b/examples/data-sources/snowflake_database/data-source.tf @@ -1,3 +1,3 @@ data "snowflake_database" "this" { - name = "DEMO_DB" + name = "DEMO_DB" } diff --git a/examples/data-sources/snowflake_external_functions/data-source.tf b/examples/data-sources/snowflake_external_functions/data-source.tf index fc3a9519df..713833d4cd 100644 --- a/examples/data-sources/snowflake_external_functions/data-source.tf +++ b/examples/data-sources/snowflake_external_functions/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_external_functions" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_external_tables/data-source.tf b/examples/data-sources/snowflake_external_tables/data-source.tf index d5c67095c7..cd25dd0c00 100644 --- a/examples/data-sources/snowflake_external_tables/data-source.tf +++ b/examples/data-sources/snowflake_external_tables/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_external_tables" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_file_formats/data-source.tf b/examples/data-sources/snowflake_file_formats/data-source.tf index 2d21bbe36e..838acb7a8b 100644 --- a/examples/data-sources/snowflake_file_formats/data-source.tf +++ b/examples/data-sources/snowflake_file_formats/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_file_formats" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_functions/data-source.tf b/examples/data-sources/snowflake_functions/data-source.tf index 3d34a4b395..ef428614a2 100644 --- a/examples/data-sources/snowflake_functions/data-source.tf +++ b/examples/data-sources/snowflake_functions/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_functions" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_masking_policies/data-source.tf b/examples/data-sources/snowflake_masking_policies/data-source.tf index eca3077b3b..4d18cbcc8e 100644 --- a/examples/data-sources/snowflake_masking_policies/data-source.tf +++ b/examples/data-sources/snowflake_masking_policies/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_masking_policies" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_materialized_views/data-source.tf b/examples/data-sources/snowflake_materialized_views/data-source.tf index bcc9a64f49..99293fb9da 100644 --- a/examples/data-sources/snowflake_materialized_views/data-source.tf +++ b/examples/data-sources/snowflake_materialized_views/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_materialized_views" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_pipes/data-source.tf b/examples/data-sources/snowflake_pipes/data-source.tf index fb63852e81..ab2b789d72 100644 --- a/examples/data-sources/snowflake_pipes/data-source.tf +++ b/examples/data-sources/snowflake_pipes/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_pipes" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_procedures/data-source.tf b/examples/data-sources/snowflake_procedures/data-source.tf index 1824ceccf2..058b378fec 100644 --- a/examples/data-sources/snowflake_procedures/data-source.tf +++ b/examples/data-sources/snowflake_procedures/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_procedures" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_role/data-source.tf b/examples/data-sources/snowflake_role/data-source.tf index 28229598f8..49dea38bc1 100644 --- a/examples/data-sources/snowflake_role/data-source.tf +++ b/examples/data-sources/snowflake_role/data-source.tf @@ -1,3 +1,3 @@ data "snowflake_role" "this" { - name = "role1" + name = "role1" } diff --git a/examples/data-sources/snowflake_row_access_policies/data-source.tf b/examples/data-sources/snowflake_row_access_policies/data-source.tf index 4ba5df6216..c51e2bbcc4 100644 --- a/examples/data-sources/snowflake_row_access_policies/data-source.tf +++ b/examples/data-sources/snowflake_row_access_policies/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_row_access_policies" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_schemas/data-source.tf b/examples/data-sources/snowflake_schemas/data-source.tf index 314ba572d4..7d84b77fde 100644 --- a/examples/data-sources/snowflake_schemas/data-source.tf +++ b/examples/data-sources/snowflake_schemas/data-source.tf @@ -1,3 +1,3 @@ data "snowflake_schemas" "current" { - database = "MYDB" + database = "MYDB" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_sequences/data-source.tf b/examples/data-sources/snowflake_sequences/data-source.tf index a822f7a88a..6f52ebf7dc 100644 --- a/examples/data-sources/snowflake_sequences/data-source.tf +++ b/examples/data-sources/snowflake_sequences/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_sequences" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_stages/data-source.tf b/examples/data-sources/snowflake_stages/data-source.tf index 1a9829d876..986e8c0f00 100644 --- a/examples/data-sources/snowflake_stages/data-source.tf +++ b/examples/data-sources/snowflake_stages/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_stages" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_streams/data-source.tf b/examples/data-sources/snowflake_streams/data-source.tf index f2015e0e62..00afc182f3 100644 --- a/examples/data-sources/snowflake_streams/data-source.tf +++ b/examples/data-sources/snowflake_streams/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_streams" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_system_generate_scim_access_token/data-source.tf b/examples/data-sources/snowflake_system_generate_scim_access_token/data-source.tf index 5fb1d2b134..f6ef6124ac 100644 --- a/examples/data-sources/snowflake_system_generate_scim_access_token/data-source.tf +++ b/examples/data-sources/snowflake_system_generate_scim_access_token/data-source.tf @@ -1,3 +1,3 @@ data "snowflake_system_generate_scim_access_token" "scim" { - integration_name = "AAD_PROVISIONING" + integration_name = "AAD_PROVISIONING" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_tables/data-source.tf b/examples/data-sources/snowflake_tables/data-source.tf index 5e4b16adfe..bdba5a4d67 100644 --- a/examples/data-sources/snowflake_tables/data-source.tf +++ b/examples/data-sources/snowflake_tables/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_tables" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_tasks/data-source.tf b/examples/data-sources/snowflake_tasks/data-source.tf index 8aa5d48e23..dba5b39d70 100644 --- a/examples/data-sources/snowflake_tasks/data-source.tf +++ b/examples/data-sources/snowflake_tasks/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_tasks" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_users/data-source.tf b/examples/data-sources/snowflake_users/data-source.tf index 92c126baa4..117dd0d224 100644 --- a/examples/data-sources/snowflake_users/data-source.tf +++ b/examples/data-sources/snowflake_users/data-source.tf @@ -1,3 +1,3 @@ data "snowflake_users" "current" { - pattern = "user1" + pattern = "user1" } \ No newline at end of file diff --git a/examples/data-sources/snowflake_views/data-source.tf b/examples/data-sources/snowflake_views/data-source.tf index e4a977c759..3380c74507 100644 --- a/examples/data-sources/snowflake_views/data-source.tf +++ b/examples/data-sources/snowflake_views/data-source.tf @@ -1,4 +1,4 @@ data "snowflake_views" "current" { - database = "MYDB" - schema = "MYSCHEMA" + database = "MYDB" + schema = "MYSCHEMA" } \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 40636c6ef6..8920fb9dd6 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -17,7 +17,7 @@ provider "snowflake" { oauth_redirect_url = "..." // optional - role = "..." - host = "..." + role = "..." + host = "..." warehouse = "..." } diff --git a/examples/resources/snowflake_api_integration/resource.tf b/examples/resources/snowflake_api_integration/resource.tf index 98bbf7a974..8da0dfc97f 100644 --- a/examples/resources/snowflake_api_integration/resource.tf +++ b/examples/resources/snowflake_api_integration/resource.tf @@ -1,7 +1,7 @@ resource "snowflake_api_integration" "api_integration" { - name = "aws_integration" - api_provider = "aws_api_gateway" - api_aws_role_arn = "arn:aws:iam::000000000001:/role/test" + name = "aws_integration" + api_provider = "aws_api_gateway" + api_aws_role_arn = "arn:aws:iam::000000000001:/role/test" api_allowed_prefixes = ["https://123456.execute-api.us-west-2.amazonaws.com/prod/"] - enabled = true + enabled = true } \ No newline at end of file diff --git a/examples/resources/snowflake_external_function/resource.tf b/examples/resources/snowflake_external_function/resource.tf index fff931e22f..75534fe8df 100644 --- a/examples/resources/snowflake_external_function/resource.tf +++ b/examples/resources/snowflake_external_function/resource.tf @@ -1,5 +1,5 @@ resource "snowflake_external_function" "test_ext_func" { - name = "my_function" + name = "my_function" database = "my_test_db" schema = "my_test_schema" arg { @@ -10,8 +10,8 @@ resource "snowflake_external_function" "test_ext_func" { name = "arg2" type = "varchar" } - return_type = "variant" - return_behavior = "IMMUTABLE" - api_integration = "api_integration_name" + return_type = "variant" + return_behavior = "IMMUTABLE" + api_integration = "api_integration_name" url_of_proxy_and_resource = "https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func" } diff --git a/examples/resources/snowflake_external_oauth_integration/resource.tf b/examples/resources/snowflake_external_oauth_integration/resource.tf index d96c9234f9..269e02f8f1 100644 --- a/examples/resources/snowflake_external_oauth_integration/resource.tf +++ b/examples/resources/snowflake_external_oauth_integration/resource.tf @@ -1,10 +1,10 @@ resource "snowflake_external_oauth_integration" "azure" { - name = "AZURE_POWERBI" - type = "AZURE" - enabled = true - issuer = "https://sts.windows.net/00000000-0000-0000-0000-000000000000" + name = "AZURE_POWERBI" + type = "AZURE" + enabled = true + issuer = "https://sts.windows.net/00000000-0000-0000-0000-000000000000" snowflake_user_mapping_attribute = "LOGIN_NAME" - jws_keys_urls = ["https://login.windows.net/common/discovery/keys"] - audience_urls = ["https://analysis.windows.net/powerbi/connector/Snowflake"] - token_user_mapping_claims = ["upn"] + jws_keys_urls = ["https://login.windows.net/common/discovery/keys"] + audience_urls = ["https://analysis.windows.net/powerbi/connector/Snowflake"] + token_user_mapping_claims = ["upn"] } \ No newline at end of file diff --git a/examples/resources/snowflake_external_table_grant/resource.tf b/examples/resources/snowflake_external_table_grant/resource.tf index 7d7980925f..fd0fb8e859 100644 --- a/examples/resources/snowflake_external_table_grant/resource.tf +++ b/examples/resources/snowflake_external_table_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_external_table_grant" "grant" { external_table_name = "external_table" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/examples/resources/snowflake_failover_group/resource.tf b/examples/resources/snowflake_failover_group/resource.tf index b8c4f9ea51..7b5cce21ad 100644 --- a/examples/resources/snowflake_failover_group/resource.tf +++ b/examples/resources/snowflake_failover_group/resource.tf @@ -3,15 +3,15 @@ resource "snowflake_database" "db" { } resource "snowflake_failover_group" "source_failover_group" { - name = "FG1" - object_types = ["WAREHOUSES","DATABASES", "INTEGRATIONS", "ROLES"] - allowed_accounts= ["", ""] - allowed_databases = [snowflake_database.db.name] + name = "FG1" + object_types = ["WAREHOUSES", "DATABASES", "INTEGRATIONS", "ROLES"] + allowed_accounts = ["", ""] + allowed_databases = [snowflake_database.db.name] allowed_integration_types = ["SECURITY INTEGRATIONS"] replication_schedule { cron { expression = "0 0 10-20 * TUE,THU" - time_zone = "UTC" + time_zone = "UTC" } } } @@ -22,10 +22,10 @@ provider "snowflake" { resource "snowflake_failover_group" "target_failover_group" { provider = snowflake.account2 - name = "FG1" + name = "FG1" from_replica { - organization_name = "..." + organization_name = "..." source_account_name = "..." - name = snowflake_failover_group.fg.name + name = snowflake_failover_group.fg.name } } diff --git a/examples/resources/snowflake_file_format_grant/resource.tf b/examples/resources/snowflake_file_format_grant/resource.tf index b932678beb..b1d7ca5342 100644 --- a/examples/resources/snowflake_file_format_grant/resource.tf +++ b/examples/resources/snowflake_file_format_grant/resource.tf @@ -1,10 +1,10 @@ resource "snowflake_file_format_grant" "grant" { - database_name = "database" - schema_name = "schema" - file_format_name = "file_format" + database_name = "database" + schema_name = "schema" + file_format_name = "file_format" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/examples/resources/snowflake_function/resource.tf b/examples/resources/snowflake_function/resource.tf index db6b5dce6e..1af4684a9d 100644 --- a/examples/resources/snowflake_function/resource.tf +++ b/examples/resources/snowflake_function/resource.tf @@ -1,11 +1,11 @@ // Provider configuration provider "snowflake" { - region = "REGION" // Default is "us-west-2" + region = "REGION" // Default is "us-west-2" username = "USERNAME" account = "ACCOUNT" password = "PASSWORD" role = "MY_ROLE" - warehouse = "MY_WH" // Optional attribute, some resources (e.g. Python UDFs)' require a warehouse to create and can also be set optionally from the `SNOWFLAKE_WAREHOUSE` environment variable + warehouse = "MY_WH" // Optional attribute, some resources (e.g. Python UDFs)' require a warehouse to create and can also be set optionally from the `SNOWFLAKE_WAREHOUSE` environment variable } // Create database @@ -23,35 +23,35 @@ resource "snowflake_schema" "schema" { // Example for Java language resource "snowflake_function" "test_funct_java" { - name = "my_java_func" - database = "MY_DB" - schema = "MY_SCHEMA" - arguments { - name = "arg1" - type = "number" - } - comment = "Example for java language" - return_type = "varchar" - language = "java" - handler = "CoolFunc.test" - statement = "class CoolFunc {public static String test(int n) {return \"hello!\";}}" + name = "my_java_func" + database = "MY_DB" + schema = "MY_SCHEMA" + arguments { + name = "arg1" + type = "number" + } + comment = "Example for java language" + return_type = "varchar" + language = "java" + handler = "CoolFunc.test" + statement = "class CoolFunc {public static String test(int n) {return \"hello!\";}}" } // Example for Python language resource "snowflake_function" "python_test" { - name = "MY_PYTHON_FUNC" - database = "MY_DB" - schema = "MY_SCHEMA" - arguments { - name = "arg1" - type = "number" - } - comment = "Example for Python language" - return_type = "NUMBER(38,0)" - null_input_behavior = "CALLED ON NULL INPUT" - return_behavior = "VOLATILE" - language = "python" - runtime_version = "3.8" - handler = "add_py" - statement = "def add_py(i): return i+1" + name = "MY_PYTHON_FUNC" + database = "MY_DB" + schema = "MY_SCHEMA" + arguments { + name = "arg1" + type = "number" + } + comment = "Example for Python language" + return_type = "NUMBER(38,0)" + null_input_behavior = "CALLED ON NULL INPUT" + return_behavior = "VOLATILE" + language = "python" + runtime_version = "3.8" + handler = "add_py" + statement = "def add_py(i): return i+1" } diff --git a/examples/resources/snowflake_function_grant/resource.tf b/examples/resources/snowflake_function_grant/resource.tf index 62d2654740..ab8f99a7dc 100644 --- a/examples/resources/snowflake_function_grant/resource.tf +++ b/examples/resources/snowflake_function_grant/resource.tf @@ -1,7 +1,7 @@ resource "snowflake_function_grant" "grant" { - database_name = "database" - schema_name = "schema" - function_name = "function" + database_name = "database" + schema_name = "schema" + function_name = "function" arguments { name = "a" @@ -14,7 +14,7 @@ resource "snowflake_function_grant" "grant" { return_type = "string" privilege = "USAGE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/examples/resources/snowflake_materialized_view_grant/resource.tf b/examples/resources/snowflake_materialized_view_grant/resource.tf index 6c50c4cac8..18cb66a908 100644 --- a/examples/resources/snowflake_materialized_view_grant/resource.tf +++ b/examples/resources/snowflake_materialized_view_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_materialized_view_grant" "grant" { materialized_view_name = "materialized_view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/examples/resources/snowflake_pipe_grant/resource.tf b/examples/resources/snowflake_pipe_grant/resource.tf index 8cacb85e1f..45e23bbaa9 100644 --- a/examples/resources/snowflake_pipe_grant/resource.tf +++ b/examples/resources/snowflake_pipe_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_pipe_grant" "grant" { pipe_name = "pipe" privilege = "OPERATE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/examples/resources/snowflake_procedure_grant/resource.tf b/examples/resources/snowflake_procedure_grant/resource.tf index 04d90b0d98..a3303493a7 100644 --- a/examples/resources/snowflake_procedure_grant/resource.tf +++ b/examples/resources/snowflake_procedure_grant/resource.tf @@ -1,7 +1,7 @@ resource "snowflake_procedure_grant" "grant" { - database_name = "database" - schema_name = "schema" - procedure_name = "procedure" + database_name = "database" + schema_name = "schema" + procedure_name = "procedure" arguments { name = "a" @@ -14,7 +14,7 @@ resource "snowflake_procedure_grant" "grant" { return_type = "string" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"] diff --git a/examples/resources/snowflake_role_grants/resource.tf b/examples/resources/snowflake_role_grants/resource.tf index 65664e3002..4cae3c2e5b 100644 --- a/examples/resources/snowflake_role_grants/resource.tf +++ b/examples/resources/snowflake_role_grants/resource.tf @@ -18,14 +18,14 @@ resource "snowflake_role" "other_role" { } resource "snowflake_role_grants" "grants" { - role_name = "${snowflake_role.role.name}" + role_name = snowflake_role.role.name roles = [ - "${snowflake_role.other_role.name}", + snowflake_role.other_role.name, ] users = [ - "${snowflake_user.user.name}", - "${snowflake_user.user2.name}", + snowflake_user.user.name, + snowflake_user.user2.name, ] } diff --git a/examples/resources/snowflake_role_ownership_grants/resource.tf b/examples/resources/snowflake_role_ownership_grants/resource.tf index 82dbf48dc8..c8de4c8e66 100644 --- a/examples/resources/snowflake_role_ownership_grants/resource.tf +++ b/examples/resources/snowflake_role_ownership_grants/resource.tf @@ -18,7 +18,7 @@ resource "snowflake_role_grants" "grants" { } resource "snowflake_role_ownership_grant" "grant" { - on_role_name = snowflake_role.role.name - to_role_name = snowflake_role.other_role.name + on_role_name = snowflake_role.role.name + to_role_name = snowflake_role.other_role.name current_grants = "COPY" } \ No newline at end of file diff --git a/examples/resources/snowflake_row_access_policy/resource.tf b/examples/resources/snowflake_row_access_policy/resource.tf index b89ff2bed1..a3f68a570a 100644 --- a/examples/resources/snowflake_row_access_policy/resource.tf +++ b/examples/resources/snowflake_row_access_policy/resource.tf @@ -1,8 +1,8 @@ resource "snowflake_row_access_policy" "example_row_access_policy" { - name = "EXAMPLE_ROW_ACCESS_POLICY" - database = "EXAMPLE_DB" - schema = "EXAMPLE_SCHEMA" - signature = { + name = "EXAMPLE_ROW_ACCESS_POLICY" + database = "EXAMPLE_DB" + schema = "EXAMPLE_SCHEMA" + signature = { A = "VARCHAR", B = "VARCHAR" } diff --git a/examples/resources/snowflake_row_access_policy_grant/resource.tf b/examples/resources/snowflake_row_access_policy_grant/resource.tf index c871f2c7de..02864cce88 100644 --- a/examples/resources/snowflake_row_access_policy_grant/resource.tf +++ b/examples/resources/snowflake_row_access_policy_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_row_access_policy_grant" "grant" { row_access_policy_name = "row_access_policy" privilege = "APPLY" - roles = ["role1", "role2"] + roles = ["role1", "role2"] with_grant_option = false } diff --git a/examples/resources/snowflake_saml_integration/resource.tf b/examples/resources/snowflake_saml_integration/resource.tf index 8193b7859a..fbd9bbb6c2 100644 --- a/examples/resources/snowflake_saml_integration/resource.tf +++ b/examples/resources/snowflake_saml_integration/resource.tf @@ -1,8 +1,8 @@ resource "snowflake_saml_integration" "saml_integration" { - name = "saml_integration" - saml2_provider = "CUSTOM" - saml2_issuer = "test_issuer" - saml2_sso_url = "https://testsamlissuer.com" + name = "saml_integration" + saml2_provider = "CUSTOM" + saml2_issuer = "test_issuer" + saml2_sso_url = "https://testsamlissuer.com" saml2_x509_cert = "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiMD6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO" - enabled = true + enabled = true } \ No newline at end of file diff --git a/examples/resources/snowflake_sequence/resource.tf b/examples/resources/snowflake_sequence/resource.tf index d3754f3bd9..08412a41e0 100644 --- a/examples/resources/snowflake_sequence/resource.tf +++ b/examples/resources/snowflake_sequence/resource.tf @@ -1,14 +1,14 @@ resource "snowflake_database" "database" { - name = "things" + name = "things" } resource "snowflake_schema" "test_schema" { - name = "things" - database = snowflake_database.test_database.name + name = "things" + database = snowflake_database.test_database.name } resource "snowflake_sequence" "test_sequence" { - database = snowflake_database.test_database.name - schema = snowflake_schema.test_schema.name - name = "thing_counter" + database = snowflake_database.test_database.name + schema = snowflake_schema.test_schema.name + name = "thing_counter" } diff --git a/examples/resources/snowflake_sequence_grant/resource.tf b/examples/resources/snowflake_sequence_grant/resource.tf index 7501b3dd6c..6bc2affa91 100644 --- a/examples/resources/snowflake_sequence_grant/resource.tf +++ b/examples/resources/snowflake_sequence_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_sequence_grant" "grant" { sequence_name = "sequence" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/examples/resources/snowflake_stream_grant/resource.tf b/examples/resources/snowflake_stream_grant/resource.tf index bc5bd91d38..bc79b7fe53 100644 --- a/examples/resources/snowflake_stream_grant/resource.tf +++ b/examples/resources/snowflake_stream_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_stream_grant" "grant" { stream_name = "view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/examples/resources/snowflake_table_constraint/resource.tf b/examples/resources/snowflake_table_constraint/resource.tf index 9edee353b5..22ef9a50bc 100644 --- a/examples/resources/snowflake_table_constraint/resource.tf +++ b/examples/resources/snowflake_table_constraint/resource.tf @@ -3,14 +3,14 @@ resource "snowflake_database" "d" { } resource "snowflake_schema" "s" { - name = "some_schema" - database = snowflake_database.d.name + name = "some_schema" + database = snowflake_database.d.name } resource "snowflake_table" "t" { - database = snowflake_database.d.name - schema = snowflake_schema.s.name - name = "some_table" + database = snowflake_database.d.name + schema = snowflake_schema.s.name + name = "some_table" column { name = "col1" @@ -18,7 +18,7 @@ resource "snowflake_table" "t" { nullable = false } - column { + column { name = "col2" type = "text" nullable = false @@ -32,9 +32,9 @@ resource "snowflake_table" "t" { } resource "snowflake_table" "fk_t" { - database = snowflake_database.d.name - schema = snowflake_schema.s.name - name = "fk_table" + database = snowflake_database.d.name + schema = snowflake_schema.s.name + name = "fk_table" column { name = "fk_col1" @@ -42,7 +42,7 @@ resource "snowflake_table" "fk_t" { nullable = false } - column { + column { name = "fk_col2" type = "text" nullable = false @@ -50,28 +50,28 @@ resource "snowflake_table" "fk_t" { } resource "snowflake_table_constraint" "primary_key" { - name="myconstraint" - type="PRIMARY KEY" + name = "myconstraint" + type = "PRIMARY KEY" table_id = snowflake_table.t.id - columns = ["col1"] - comment = "hello world" + columns = ["col1"] + comment = "hello world" } resource "snowflake_table_constraint" "foreign_key" { - name="myconstraintfk" - type="FOREIGN KEY" + name = "myconstraintfk" + type = "FOREIGN KEY" table_id = snowflake_table.t.id - columns = ["col2"] + columns = ["col2"] foreign_key_properties { references { table_id = snowflake_table.fk_t.id - columns = ["fk_col1"] + columns = ["fk_col1"] } } - enforced = false + enforced = false deferrable = false - initially = "IMMEDIATE" - comment = "hello fk" + initially = "IMMEDIATE" + comment = "hello fk" } resource "snowflake_table_constraint" "unique" { diff --git a/examples/resources/snowflake_tag_masking_policy_association/resource.tf b/examples/resources/snowflake_tag_masking_policy_association/resource.tf index e9d4ad547d..993100423e 100644 --- a/examples/resources/snowflake_tag_masking_policy_association/resource.tf +++ b/examples/resources/snowflake_tag_masking_policy_association/resource.tf @@ -39,6 +39,6 @@ resource "snowflake_masking_policy" "example_masking_policy" { } resource "snowflake_tag_masking_policy_association" "name" { - tag_id = snowflake_tag.this.id - masking_policy_id = snowflake_masking_policy.example_masking_policy.id + tag_id = snowflake_tag.this.id + masking_policy_id = snowflake_masking_policy.example_masking_policy.id } \ No newline at end of file diff --git a/examples/resources/snowflake_task_grant/resource.tf b/examples/resources/snowflake_task_grant/resource.tf index e25ff3294d..a021191f59 100644 --- a/examples/resources/snowflake_task_grant/resource.tf +++ b/examples/resources/snowflake_task_grant/resource.tf @@ -1,10 +1,10 @@ resource "snowflake_task_grant" "grant" { database_name = "database" schema_name = "schema" - task_name = "task" + task_name = "task" privilege = "OPERATE" - roles = ["role1", "role2"] + roles = ["role1", "role2"] on_future = false with_grant_option = false diff --git a/examples/resources/snowflake_view_grant/resource.tf b/examples/resources/snowflake_view_grant/resource.tf index e3cf4c3512..cdbdd3c9f5 100644 --- a/examples/resources/snowflake_view_grant/resource.tf +++ b/examples/resources/snowflake_view_grant/resource.tf @@ -4,7 +4,7 @@ resource "snowflake_view_grant" "grant" { view_name = "view" privilege = "SELECT" - roles = ["role1", "role2"] + roles = ["role1", "role2"] shares = ["share1", "share2"]