From 12941417b56cf27f0e4c3bddd386a87496151cba Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 11:46:17 +0100 Subject: [PATCH 1/7] Update and fix V1 resources and data-sources lists --- .../LIST_OF_PREVIEW_FEATURES_FOR_V1.md | 6 ++--- .../LIST_OF_STABLE_RESOURCES_FOR_V1.md | 25 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/v1-preparations/LIST_OF_PREVIEW_FEATURES_FOR_V1.md b/v1-preparations/LIST_OF_PREVIEW_FEATURES_FOR_V1.md index 161d693ecd..1f51a82107 100644 --- a/v1-preparations/LIST_OF_PREVIEW_FEATURES_FOR_V1.md +++ b/v1-preparations/LIST_OF_PREVIEW_FEATURES_FOR_V1.md @@ -12,14 +12,14 @@ * [snowflake_dynamic_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/dynamic_table) * [snowflake_dynamic_tables](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/dynamic_tables) (datasource) * [snowflake_external_function](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/external_function) -* [snowflake_external_functions](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/external_functions) +* [snowflake_external_functions](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/external_functions) (datasource) * [snowflake_external_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/external_table) * [snowflake_external_tables](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/external_tables) (datasource) * [snowflake_external_volume](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/external_volume) * [snowflake_failover_group](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/failover_group) -* [snowflake_failover_groups](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/failover_groups) +* [snowflake_failover_groups](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/failover_groups) (datasource) * [snowflake_file_format](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/file_format) -* [snowflake_file_formats](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/file_formats) +* [snowflake_file_formats](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/file_formats) (datasource) * [snowflake_managed_account](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/managed_account) * [snowflake_materialized_view](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/materialized_view) * [snowflake_materialized_views](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/materialized_views) (datasource) diff --git a/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md b/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md index 4744d66775..0610a0d1d8 100644 --- a/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md +++ b/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md @@ -3,9 +3,10 @@ We estimate the given list to be accurate, but it may be subject to small change * Account (in progress) * [snowflake_account](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/account) * [snowflake_accounts](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/accounts) (datasource) -* Connection (in progress) - * snowflake_connection - * snowflake_connections (datasource) +* Connection + * [snowflake_primary_connection](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/primary_connection) + * [snowflake_secondary_connection](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secondary_connection) + * [snowflake_connections](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/connections) (datasource) * Database * [snowflake_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/database) * [snowflake_secondary_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/secondary_database) @@ -55,12 +56,12 @@ We estimate the given list to be accurate, but it may be subject to small change * Schema * [snowflake_schema](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/schema) * [snowflake_schemas](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/schemas) (datasource) -* Secret (in progress) - * snowflake_secret_with_client_credentials - * snowflake_secret_with_authorization_code_grant - * snowflake_secret_with_basic_authentication - * snowflake_secret_with_generic_string - * snowflake_secrets (datasource) +* Secret + * [snowflake_secret_with_client_credentials](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_client_credentials) + * [snowflake_secret_with_authorization_code_grant](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_authorization_code_grant) + * [snowflake_secret_with_basic_authentication](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_basic_authentication) + * [snowflake_secret_with_generic_string](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_generic_string) + * [snowflake_secrets](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/secrets) (datasource) * Security Integration * [snowflake_api_authentication_integration_with_authorization_code_grant](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/api_authentication_integration_with_authorization_code_grant) * [snowflake_api_authentication_integration_with_client_credentials](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/api_authentication_integration_with_client_credentials) @@ -75,11 +76,11 @@ We estimate the given list to be accurate, but it may be subject to small change * [snowflake_account_parameter](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/account_parameter) * SQL Execute (in progress) * \ (no name yet) -* Stream (in progress) +* Stream * [snowflake_stream_on_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/stream_on_table) * [snowflake_stream_on_external_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/stream_on_external_table) - * snowflake_stream_on_directory_table - * snowflake_stream_on_view + * [snowflake_stream_on_directory_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_directory_table) + * [snowflake_stream_on_view](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_view) * [snowflake_streams](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/streams) (datasource) * Streamlit * [snowflake_streamlit](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/streamlit) From f4d7c63282b1abcf7a157cbb7d2f44752dc3a1de Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 11:49:33 +0100 Subject: [PATCH 2/7] Update Essential/Remaining GA objects lists --- v1-preparations/ESSENTIAL_GA_OBJECTS.MD | 10 ++--- v1-preparations/REMAINING_GA_OBJECTS.MD | 58 ++++++++++++------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/v1-preparations/ESSENTIAL_GA_OBJECTS.MD b/v1-preparations/ESSENTIAL_GA_OBJECTS.MD index 02789cecae..28c250976a 100644 --- a/v1-preparations/ESSENTIAL_GA_OBJECTS.MD +++ b/v1-preparations/ESSENTIAL_GA_OBJECTS.MD @@ -14,11 +14,11 @@ newer provider versions. We will address these while working on the given object | Object Type | Status | Known issues | |--------------------------|:------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ACCOUNT | ❌ | [#2030](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2030), [#2015](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2015), [#1891](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1891), [#1679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1679), [#1671](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1671), [#1501](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1501), [#1062](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1062) | +| ACCOUNT | 👨‍💻 | [#2030](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2030), [#2015](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2015), [#1891](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1891), [#1679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1679), [#1671](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1671), [#1501](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1501), [#1062](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1062) | | DATABASE | 🚀 | issues in the older versions: [resources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Aresource%3Adatabase+) and [datasources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Adata_source%3Adatabases+) | | DATABASE ROLE | 🚀 | - | | NETWORK POLICY | 🚀 | - | -| RESOURCE MONITOR | 👨‍💻 | [#1990](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1990), [#1832](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1832), [#1821](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1821), [#1754](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1754), [#1716](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1716), [#1714](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1714), [#1624](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1624), [#1500](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1500), [#1175](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1175) | +| RESOURCE MONITOR | 🚀 | [#1990](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1990), [#1832](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1832), [#1821](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1821), [#1754](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1754), [#1716](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1716), [#1714](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1714), [#1624](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1624), [#1500](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1500), [#1175](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1175) | | ROLE | 🚀 | - | | SECURITY INTEGRATION | 🚀 | issues in the older versions: [resources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Aresource%3Aexternal_oauth_integration%2Cresource%3Asaml_integration%2Cresource%3Aoauth_integration%2Cresource%3Ascim_integration) | | USER | 🚀 | issues in the older versions: [resources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Aresource%3Auser+) and [datasources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Adata_source%3Ausers+) | @@ -29,11 +29,11 @@ newer provider versions. We will address these while working on the given object | ROW ACCESS POLICY | 🚀 | [#2053](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2053), [#1600](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1600), [#1151](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1151) | | SCHEMA | 🚀 | issues in the older versions: [resources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Aresource%3Aschema+) and [datasources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Adata_source%3Aschemas+) | | STAGE | ❌ | [#2995](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2995), [#2818](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2818), [#2679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2679), [#2505](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2505), [#1911](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1911), [#1903](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1903), [#1795](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1795), [#1705](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1705), [#1544](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1544), [#1491](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1491), [#1087](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1087), [#265](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/265) | -| STREAM | 👨‍💻 | [#2975](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2975), [#2413](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2413), [#2201](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2201), [#1150](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1150) | +| STREAM | 🚀 | [#2975](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2975), [#2413](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2413), [#2201](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2201), [#1150](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1150) | | STREAMLIT | 🚀 | - | -| TABLE | ❌ | [#2997](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2997), [#2844](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2844), [#2839](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2839), [#2735](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2735), [#2733](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2733), [#2683](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2683), [#2676](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2676), [#2674](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2674), [#2629](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2629), [#2418](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2418), [#2415](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2415), [#2406](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2406), [#2236](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2236), [#2035](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2035), [#1823](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1823), [#1799](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1799), [#1764](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1764), [#1600](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1600), [#1387](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1387), [#1272](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1272), [#1271](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1271), [#1248](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1248), [#1241](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1241), [#1146](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1146), [#1032](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1032), [#420](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/420) | +| TABLE | 👨‍💻 | [#2997](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2997), [#2844](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2844), [#2839](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2839), [#2735](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2735), [#2733](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2733), [#2683](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2683), [#2676](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2676), [#2674](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2674), [#2629](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2629), [#2418](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2418), [#2415](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2415), [#2406](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2406), [#2236](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2236), [#2035](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2035), [#1823](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1823), [#1799](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1799), [#1764](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1764), [#1600](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1600), [#1387](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1387), [#1272](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1272), [#1271](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1271), [#1248](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1248), [#1241](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1241), [#1146](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1146), [#1032](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1032), [#420](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/420) | | TAG | 👨‍💻 | [#2943](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2902), [#2598](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2598), [#1910](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1910), [#1909](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1909), [#1862](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1862), [#1806](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1806), [#1657](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1657), [#1496](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1496), [#1443](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1443), [#1394](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1394), [#1372](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1372), [#1074](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1074) | | TASK | 👨‍💻 | [#1419](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1419), [#1250](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1250), [#1194](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1194), [#1088](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1088) | | VIEW | 🚀 | issues in the older versions: [resources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Aresource%3Aview+) and [datasources](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues?q=label%3Adata_source%3Aviews+) | -| snowflake_unsafe_execute | ❌ | [#2934](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2934) | +| snowflake_unsafe_execute | 👨‍💻 | [#2934](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2934) | diff --git a/v1-preparations/REMAINING_GA_OBJECTS.MD b/v1-preparations/REMAINING_GA_OBJECTS.MD index 8c8c01ce83..fae960f8d3 100644 --- a/v1-preparations/REMAINING_GA_OBJECTS.MD +++ b/v1-preparations/REMAINING_GA_OBJECTS.MD @@ -9,34 +9,34 @@ Status is one of: Known issues lists open issues touching the given object. Note that some of these issues may be already fixed in the newer provider versions. We will address these while working on the given object. -| Object Type | Status | Known issues | -|-----------------------------|:------:|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| snowflake_object_parameter | ❌ | [#2446](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2446), [#1848](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1848), [#1561](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1561), [#1457](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1457) | -| snowflake_session_parameter | ❌ | [#1814](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1814), [#1783](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1783), [#1036](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1036) | -| snowflake_account_parameter | ❌ | [#1679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1679) | -| API INTEGRATION | ❌ | [#2772](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2772), [#1445](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1445) | -| APPLICATION | ❌ | - | -| APPLICATION PACKAGE | ❌ | - | -| APPLICATION ROLE | ❌ | [#3134](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3134) - | -| CONNECTION | ❌ | - | -| EXTERNAL ACCESS INTEGRATION | ❌ | [#2546](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2546) | -| FAILOVER GROUP | ❌ | [#2516](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2516), [#2332](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2332), [#1418](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1418) | -| MANAGED ACCOUNT | ❌ | - | -| NOTIFICATION INTEGRATION | ❌ | [#2966](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2966), [#2965](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2965), [#1051](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1051) | -| REPLICATION GROUP | ❌ | [#1602](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1602) | -| SHARE | ❌ | [#3051](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3051), [#2189](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2189), [#1279](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1279), [#630](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/630) | +| Object Type | Status | Known issues | +|-----------------------------|:------:|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| snowflake_object_parameter | 👨‍💻 | [#2446](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2446), [#1848](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1848), [#1561](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1561), [#1457](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1457) | +| snowflake_session_parameter | 👨‍💻 | [#1814](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1814), [#1783](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1783), [#1036](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1036) | +| snowflake_account_parameter | 👨‍💻 | [#1679](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1679) | +| API INTEGRATION | ❌ | [#2772](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2772), [#1445](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1445) | +| APPLICATION | ❌ | - | +| APPLICATION PACKAGE | ❌ | - | +| APPLICATION ROLE | ❌ | [#3134](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3134) - | +| CONNECTION | 🚀 | - | +| EXTERNAL ACCESS INTEGRATION | ❌ | [#2546](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2546) | +| FAILOVER GROUP | ❌ | [#2516](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2516), [#2332](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2332), [#1418](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1418) | +| MANAGED ACCOUNT | ❌ | - | +| NOTIFICATION INTEGRATION | ❌ | [#2966](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2966), [#2965](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2965), [#1051](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1051) | +| REPLICATION GROUP | ❌ | [#1602](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1602) | +| SHARE | ❌ | [#3051](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3051), [#2189](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2189), [#1279](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1279), [#630](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/630) | | STORAGE INTEGRATION | ❌ | [#3082](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3082), [#2624](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2624), [#1445](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1445) | -| ALERT | ❌ | [#2963](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2963), [#2829](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2829), [#2541](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2541), [#1811](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1811), [#1753](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1753) | -| DYNAMIC TABLE | ❌ | - | -| EVENT TABLE | ❌ | [#1888](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1888) | -| EXTERNAL FUNCTION | ❌ | [#1901](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1901) | -| EXTERNAL TABLE | ❌ | [#2881](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2881), [#1564](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1564), [#1537](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1537), [#1416](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1416), [#1040](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1040) | +| ALERT | ❌ | [#2963](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2963), [#2829](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2829), [#2541](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2541), [#1811](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1811), [#1753](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1753) | +| DYNAMIC TABLE | ❌ | - | +| EVENT TABLE | ❌ | [#1888](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1888) | +| EXTERNAL FUNCTION | ❌ | [#1901](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1901) | +| EXTERNAL TABLE | ❌ | [#2881](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2881), [#1564](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1564), [#1537](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1537), [#1416](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1416), [#1040](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1040) | | FILE FORMAT | ❌ | [#3115](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3115), [#2154](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2154), [#1984](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1984), [#1820](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1820), [#1760](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1760), [#1614](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1614), [#1613](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1613), [#1609](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1609), [#1461](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1461) | -| MATERIALIZED VIEW | ❌ | [#2397](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2397), [#1218](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1218) | -| NETWORK RULE | ❌ | [#2593](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2593), [#2482](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2482) | -| PACKAGES POLICY | ❌ | - | -| PASSWORD POLICY | ❌ | [#2213](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2213), [#2162](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2162) | -| PIPE | ❌ | [#2785](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2785), [#2075](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2075), [#1781](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1781), [#1707](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1707), [#1478](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1478), [#533](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/533) | -| SECRET | ❌ | [#2545](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2545) | -| SEQUENCE | ❌ | [#2589](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2589) | -| SESSION POLICY | ❌ | [#2870](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2870) | +| MATERIALIZED VIEW | ❌ | [#2397](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2397), [#1218](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1218) | +| NETWORK RULE | ❌ | [#2593](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2593), [#2482](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2482) | +| PACKAGES POLICY | ❌ | - | +| PASSWORD POLICY | ❌ | [#2213](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2213), [#2162](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2162) | +| PIPE | ❌ | [#2785](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2785), [#2075](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2075), [#1781](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1781), [#1707](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1707), [#1478](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1478), [#533](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/533) | +| SECRET | 🚀 | [#2545](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2545) | +| SEQUENCE | ❌ | [#2589](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2589) | +| SESSION POLICY | ❌ | [#2870](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2870) | From 664abda2394fd9c4c2dca74fc1a61449996e6b0b Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 12:02:48 +0100 Subject: [PATCH 3/7] Add V1 candidate warning to grant resources and data sources --- docs/data-sources/grants.md | 2 ++ docs/resources/grant_account_role.md | 2 ++ docs/resources/grant_application_role.md | 2 ++ docs/resources/grant_database_role.md | 2 ++ docs/resources/grant_ownership.md | 2 ++ .../grant_privileges_to_account_role.md | 2 ++ .../grant_privileges_to_database_role.md | 2 ++ docs/resources/grant_privileges_to_share.md | 2 ++ templates/data-sources/grants.md.tmpl | 32 +++++++++++++++++ .../resources/grant_account_role.md.tmpl | 36 +++++++++++++++++++ .../resources/grant_application_role.md.tmpl | 36 +++++++++++++++++++ .../resources/grant_database_role.md.tmpl | 36 +++++++++++++++++++ templates/resources/grant_ownership.md.tmpl | 2 ++ .../grant_privileges_to_account_role.md.tmpl | 2 ++ .../grant_privileges_to_database_role.md.tmpl | 2 ++ .../grant_privileges_to_share.md.tmpl | 2 ++ 16 files changed, 164 insertions(+) create mode 100644 templates/data-sources/grants.md.tmpl create mode 100644 templates/resources/grant_account_role.md.tmpl create mode 100644 templates/resources/grant_application_role.md.tmpl create mode 100644 templates/resources/grant_database_role.md.tmpl diff --git a/docs/data-sources/grants.md b/docs/data-sources/grants.md index c7ccbfafce..6ffd89b195 100644 --- a/docs/data-sources/grants.md +++ b/docs/data-sources/grants.md @@ -5,6 +5,8 @@ description: |- --- +!> **V1 release candidate** This datasource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # snowflake_grants (Data Source) diff --git a/docs/resources/grant_account_role.md b/docs/resources/grant_account_role.md index 89382c496d..bacf91dbe3 100644 --- a/docs/resources/grant_account_role.md +++ b/docs/resources/grant_account_role.md @@ -5,6 +5,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # snowflake_grant_account_role (Resource) diff --git a/docs/resources/grant_application_role.md b/docs/resources/grant_application_role.md index 7787f033f5..43a4b2e9fa 100644 --- a/docs/resources/grant_application_role.md +++ b/docs/resources/grant_application_role.md @@ -5,6 +5,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # snowflake_grant_application_role (Resource) diff --git a/docs/resources/grant_database_role.md b/docs/resources/grant_database_role.md index 176fcc70e7..fee6502485 100644 --- a/docs/resources/grant_database_role.md +++ b/docs/resources/grant_database_role.md @@ -5,6 +5,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # snowflake_grant_database_role (Resource) diff --git a/docs/resources/grant_ownership.md b/docs/resources/grant_ownership.md index e9ac0afa06..7f5f6f0419 100644 --- a/docs/resources/grant_ownership.md +++ b/docs/resources/grant_ownership.md @@ -6,6 +6,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + ~> **Note** For more details about granting ownership, please visit [`GRANT OWNERSHIP` Snowflake documentation page](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership). !> **Warning** Grant ownership resource still has some limitations. Delete operation is not implemented for on_future grants (you have to remove the config and then revoke ownership grant on future X manually). diff --git a/docs/resources/grant_privileges_to_account_role.md b/docs/resources/grant_privileges_to_account_role.md index a96306852a..5e44a8c15c 100644 --- a/docs/resources/grant_privileges_to_account_role.md +++ b/docs/resources/grant_privileges_to_account_role.md @@ -6,6 +6,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon). diff --git a/docs/resources/grant_privileges_to_database_role.md b/docs/resources/grant_privileges_to_database_role.md index f8011813ac..332e61eaa9 100644 --- a/docs/resources/grant_privileges_to_database_role.md +++ b/docs/resources/grant_privileges_to_database_role.md @@ -6,6 +6,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon). diff --git a/docs/resources/grant_privileges_to_share.md b/docs/resources/grant_privileges_to_share.md index 89c64c7289..6f267e8b09 100644 --- a/docs/resources/grant_privileges_to_share.md +++ b/docs/resources/grant_privileges_to_share.md @@ -6,6 +6,8 @@ description: |- --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # snowflake_grant_privileges_to_share (Resource) diff --git a/templates/data-sources/grants.md.tmpl b/templates/data-sources/grants.md.tmpl new file mode 100644 index 0000000000..c49c97d64d --- /dev/null +++ b/templates/data-sources/grants.md.tmpl @@ -0,0 +1,32 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ if gt (len (split .Description "")) 1 -}} +{{ index (split .Description "") 1 | plainmarkdown | trimspace | prefixlines " " }} +{{- else -}} +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +{{- end }} +--- + +!> **V1 release candidate** This datasource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{ if .HasExample -}} +## Example Usage + +{{ tffile (printf "examples/data-sources/%s/data-source.tf" .Name)}} +{{- end }} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" (printf "examples/data-sources/%s/import.sh" .Name)}} +{{- end }} diff --git a/templates/resources/grant_account_role.md.tmpl b/templates/resources/grant_account_role.md.tmpl new file mode 100644 index 0000000000..d4fc5ab54a --- /dev/null +++ b/templates/resources/grant_account_role.md.tmpl @@ -0,0 +1,36 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ if gt (len (split .Description "")) 1 -}} +{{ index (split .Description "") 1 | plainmarkdown | trimspace | prefixlines " " }} +{{- else -}} +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +{{- end }} +--- + +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{ if .HasExample -}} +## Example Usage + +{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}} + +-> **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult [identifiers guide](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/guides/identifiers#new-computed-fully-qualified-name-field-in-resources). + + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" (printf "examples/resources/%s/import.sh" .Name)}} +{{- end }} diff --git a/templates/resources/grant_application_role.md.tmpl b/templates/resources/grant_application_role.md.tmpl new file mode 100644 index 0000000000..d4fc5ab54a --- /dev/null +++ b/templates/resources/grant_application_role.md.tmpl @@ -0,0 +1,36 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ if gt (len (split .Description "")) 1 -}} +{{ index (split .Description "") 1 | plainmarkdown | trimspace | prefixlines " " }} +{{- else -}} +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +{{- end }} +--- + +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{ if .HasExample -}} +## Example Usage + +{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}} + +-> **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult [identifiers guide](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/guides/identifiers#new-computed-fully-qualified-name-field-in-resources). + + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" (printf "examples/resources/%s/import.sh" .Name)}} +{{- end }} diff --git a/templates/resources/grant_database_role.md.tmpl b/templates/resources/grant_database_role.md.tmpl new file mode 100644 index 0000000000..d4fc5ab54a --- /dev/null +++ b/templates/resources/grant_database_role.md.tmpl @@ -0,0 +1,36 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ if gt (len (split .Description "")) 1 -}} +{{ index (split .Description "") 1 | plainmarkdown | trimspace | prefixlines " " }} +{{- else -}} +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +{{- end }} +--- + +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{ if .HasExample -}} +## Example Usage + +{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}} + +-> **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult [identifiers guide](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/guides/identifiers#new-computed-fully-qualified-name-field-in-resources). + + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" (printf "examples/resources/%s/import.sh" .Name)}} +{{- end }} diff --git a/templates/resources/grant_ownership.md.tmpl b/templates/resources/grant_ownership.md.tmpl index 9689e950d4..84ad10d5ab 100644 --- a/templates/resources/grant_ownership.md.tmpl +++ b/templates/resources/grant_ownership.md.tmpl @@ -10,6 +10,8 @@ description: |- {{- end }} --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + ~> **Note** For more details about granting ownership, please visit [`GRANT OWNERSHIP` Snowflake documentation page](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership). !> **Warning** Grant ownership resource still has some limitations. Delete operation is not implemented for on_future grants (you have to remove the config and then revoke ownership grant on future X manually). diff --git a/templates/resources/grant_privileges_to_account_role.md.tmpl b/templates/resources/grant_privileges_to_account_role.md.tmpl index b84b50553e..9179c4be7b 100644 --- a/templates/resources/grant_privileges_to_account_role.md.tmpl +++ b/templates/resources/grant_privileges_to_account_role.md.tmpl @@ -10,6 +10,8 @@ description: |- {{- end }} --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + {{/* SNOW-990811 */}} !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon). diff --git a/templates/resources/grant_privileges_to_database_role.md.tmpl b/templates/resources/grant_privileges_to_database_role.md.tmpl index e32a92b19f..3561437f51 100644 --- a/templates/resources/grant_privileges_to_database_role.md.tmpl +++ b/templates/resources/grant_privileges_to_database_role.md.tmpl @@ -10,6 +10,8 @@ description: |- {{- end }} --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + {{/* SNOW-990811 */}} !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon). diff --git a/templates/resources/grant_privileges_to_share.md.tmpl b/templates/resources/grant_privileges_to_share.md.tmpl index 3ac9e57792..b90ca9b64c 100644 --- a/templates/resources/grant_privileges_to_share.md.tmpl +++ b/templates/resources/grant_privileges_to_share.md.tmpl @@ -10,6 +10,8 @@ description: |- {{- end }} --- +!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the [migration guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-from-old-grant-resources-to-new-ones). + # {{.Name}} ({{.Type}}) {{ .Description | trimspace }} From 0741e8fe7d027fa20d233f0a052c724ab9441c96 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 12:04:15 +0100 Subject: [PATCH 4/7] Update references to v0.98.0 --- .../LIST_OF_STABLE_RESOURCES_FOR_V1.md | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md b/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md index 0610a0d1d8..b196a5a418 100644 --- a/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md +++ b/v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md @@ -1,61 +1,61 @@ We estimate the given list to be accurate, but it may be subject to small changes: * Account (in progress) - * [snowflake_account](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/account) - * [snowflake_accounts](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/accounts) (datasource) + * [snowflake_account](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/account) + * [snowflake_accounts](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/accounts) (datasource) * Connection * [snowflake_primary_connection](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/primary_connection) * [snowflake_secondary_connection](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secondary_connection) * [snowflake_connections](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/connections) (datasource) * Database - * [snowflake_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/database) - * [snowflake_secondary_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/secondary_database) - * [snowflake_shared_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/shared_database) - * [snowflake_databases](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/databases) (datasource) + * [snowflake_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/database) + * [snowflake_secondary_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secondary_database) + * [snowflake_shared_database](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/shared_database) + * [snowflake_databases](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/databases) (datasource) * Database Role - * [snowflake_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/database_role) - * [snowflake_database_roles](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/database_roles) (datasource) + * [snowflake_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/database_role) + * [snowflake_database_roles](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/database_roles) (datasource) * Function (in progress) * snowflake_function_java * snowflake_function_javascript * snowflake_function_python * snowflake_function_scala * snowflake_function_sql - * [snowflake_functions](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/functions) (datasource) + * [snowflake_functions](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/functions) (datasource) * Grants - * [snowflake_grant_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_account_role) - * [snowflake_grant_application_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_application_role) - * [snowflake_grant_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_database_role) - * [snowflake_grant_ownership](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_ownership) - * [snowflake_grant_privileges_to_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_privileges_to_account_role) - * [snowflake_grant_privileges_to_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_privileges_to_database_role) - * [snowflake_grant_privileges_to_share](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/grant_privileges_to_share) - * [snowflake_grants](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/grants) (datasource) + * [snowflake_grant_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_account_role) + * [snowflake_grant_application_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_application_role) + * [snowflake_grant_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_database_role) + * [snowflake_grant_ownership](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_ownership) + * [snowflake_grant_privileges_to_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_privileges_to_account_role) + * [snowflake_grant_privileges_to_database_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_privileges_to_database_role) + * [snowflake_grant_privileges_to_share](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/grant_privileges_to_share) + * [snowflake_grants](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/grants) (datasource) * Masking Policy - * [snowflake_masking_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/masking_policy) - * [snowflake_masking_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/masking_policies) (datasource) + * [snowflake_masking_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/masking_policy) + * [snowflake_masking_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/masking_policies) (datasource) * Network Policy - * [snowflake_network_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/network_policy) - * [snowflake_network_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/network_policies) (datasource) + * [snowflake_network_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/network_policy) + * [snowflake_network_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/network_policies) (datasource) * Procedure (in progress) * snowflake_procedure_java * snowflake_procedure_javascript * snowflake_procedure_python * snowflake_procedure_scala * snowflake_procedure_sql - * [snowflake_procedures](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/procedures) (datasource) + * [snowflake_procedures](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/procedures) (datasource) * Resource Monitor - * [snowflake_resource_monitor](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/resource_monitor) - * [snowflake_resource_monitors](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/resource_monitors) (datasource) + * [snowflake_resource_monitor](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/resource_monitor) + * [snowflake_resource_monitors](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/resource_monitors) (datasource) * Role - * [snowflake_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/account_role) - * [snowflake_roles](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/roles) (datasource) + * [snowflake_account_role](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/account_role) + * [snowflake_roles](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/roles) (datasource) * Row Access Policy - * [snowflake_row_access_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/row_access_policy) - * [snowflake_row_access_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/row_access_policies) (datasource) + * [snowflake_row_access_policy](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/row_access_policy) + * [snowflake_row_access_policies](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/row_access_policies) (datasource) * Schema - * [snowflake_schema](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/schema) - * [snowflake_schemas](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/schemas) (datasource) + * [snowflake_schema](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/schema) + * [snowflake_schemas](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/schemas) (datasource) * Secret * [snowflake_secret_with_client_credentials](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_client_credentials) * [snowflake_secret_with_authorization_code_grant](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_authorization_code_grant) @@ -63,46 +63,46 @@ We estimate the given list to be accurate, but it may be subject to small change * [snowflake_secret_with_generic_string](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/secret_with_generic_string) * [snowflake_secrets](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/secrets) (datasource) * Security Integration - * [snowflake_api_authentication_integration_with_authorization_code_grant](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/api_authentication_integration_with_authorization_code_grant) - * [snowflake_api_authentication_integration_with_client_credentials](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/api_authentication_integration_with_client_credentials) - * [snowflake_api_authentication_integration_with_jwt_bearer](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/api_authentication_integration_with_jwt_bearer) - * [snowflake_external_oauth_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/external_oauth_integration) - * [snowflake_oauth_integration_for_custom_clients](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/oauth_integration_for_custom_clients) - * [snowflake_oauth_integration_for_partner_applications](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/oauth_integration_for_partner_applications) - * [snowflake_saml2_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/saml2_integration) - * [snowflake_scim_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/scim_integration) - * [snowflake_security_integrations](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/security_integrations) (datasource) + * [snowflake_api_authentication_integration_with_authorization_code_grant](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/api_authentication_integration_with_authorization_code_grant) + * [snowflake_api_authentication_integration_with_client_credentials](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/api_authentication_integration_with_client_credentials) + * [snowflake_api_authentication_integration_with_jwt_bearer](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/api_authentication_integration_with_jwt_bearer) + * [snowflake_external_oauth_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/external_oauth_integration) + * [snowflake_oauth_integration_for_custom_clients](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/oauth_integration_for_custom_clients) + * [snowflake_oauth_integration_for_partner_applications](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/oauth_integration_for_partner_applications) + * [snowflake_saml2_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/saml2_integration) + * [snowflake_scim_integration](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/scim_integration) + * [snowflake_security_integrations](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/security_integrations) (datasource) * Snowflake Parameters (in progress) - * [snowflake_account_parameter](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/account_parameter) + * [snowflake_account_parameter](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/account_parameter) * SQL Execute (in progress) * \ (no name yet) * Stream - * [snowflake_stream_on_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/stream_on_table) - * [snowflake_stream_on_external_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/stream_on_external_table) + * [snowflake_stream_on_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_table) + * [snowflake_stream_on_external_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_external_table) * [snowflake_stream_on_directory_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_directory_table) * [snowflake_stream_on_view](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/stream_on_view) - * [snowflake_streams](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/streams) (datasource) + * [snowflake_streams](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/streams) (datasource) * Streamlit - * [snowflake_streamlit](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/streamlit) - * [snowflake_streamlits](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/streamlits) (datasource) + * [snowflake_streamlit](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/streamlit) + * [snowflake_streamlits](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/streamlits) (datasource) * Table (in progress) - * [snowflake_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/table) - * [snowflake_tables](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/tables) (datasource) + * [snowflake_table](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/table) + * [snowflake_tables](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/tables) (datasource) * Tag (in progress) - * [snowflake_tag](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/tag) - * [snowflake_tag_association](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/tag_association) - * [snowflake_tags](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/tags) (datasource) + * [snowflake_tag](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/tag) + * [snowflake_tag_association](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/tag_association) + * [snowflake_tags](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/tags) (datasource) * Task (in progress) - * [snowflake_task](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/task) - * [snowflake_tasks](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/tasks) (datasource) + * [snowflake_task](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/task) + * [snowflake_tasks](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/tasks) (datasource) * User - * [snowflake_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/user) - * [snowflake_service_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/service_user) - * [snowflake_legacy_service_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/legacy_service_user) - * [snowflake_users](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/users) (datasource) + * [snowflake_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/user) + * [snowflake_service_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/service_user) + * [snowflake_legacy_service_user](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/legacy_service_user) + * [snowflake_users](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/users) (datasource) * View - * [snowflake_view](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/view) - * [snowflake_views](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/views) (datasource) + * [snowflake_view](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/view) + * [snowflake_views](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/views) (datasource) * Warehouse - * [snowflake_warehouse](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/resources/warehouse) - * [snowflake_warehouse](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.97.0/docs/data-sources/warehouse) (datasource) + * [snowflake_warehouse](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/resources/warehouse) + * [snowflake_warehouse](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.98.0/docs/data-sources/warehouse) (datasource) From a7abfe9571e53bafcf5427256836d1a21a44f3c8 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 12:14:05 +0100 Subject: [PATCH 5/7] Fix grant import commands in examples --- docs/resources/grant_account_role.md | 2 +- docs/resources/grant_application_role.md | 2 +- docs/resources/grant_database_role.md | 2 +- docs/resources/grant_ownership.md | 24 +++++++++---------- .../snowflake_grant_account_role/import.sh | 2 +- .../import.sh | 2 +- .../snowflake_grant_database_role/import.sh | 2 +- .../snowflake_grant_ownership/import.sh | 24 +++++++++---------- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/resources/grant_account_role.md b/docs/resources/grant_account_role.md index bacf91dbe3..b01aad31af 100644 --- a/docs/resources/grant_account_role.md +++ b/docs/resources/grant_account_role.md @@ -75,5 +75,5 @@ Import is supported using the following syntax: ```shell # format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string) -terraform import "\"test_role\"|ROLE|\"test_parent_role\"" +terraform import snowflake_grant_account_role.example '"test_role"|ROLE|"test_parent_role"' ``` diff --git a/docs/resources/grant_application_role.md b/docs/resources/grant_application_role.md index 43a4b2e9fa..9578e2b830 100644 --- a/docs/resources/grant_application_role.md +++ b/docs/resources/grant_application_role.md @@ -67,5 +67,5 @@ Import is supported using the following syntax: ```shell # format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string) -terraform import "\"my_application\".\"app_role_1\"|ACCOUNT_ROLE|\"my_role\"" +terraform import snowflake_grant_application_role.example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"' ``` diff --git a/docs/resources/grant_database_role.md b/docs/resources/grant_database_role.md index fee6502485..0071eaf5a0 100644 --- a/docs/resources/grant_database_role.md +++ b/docs/resources/grant_database_role.md @@ -87,5 +87,5 @@ Import is supported using the following syntax: ```shell # format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string) -terraform import "\"ABC\".\"test_db_role\"|ROLE|\"test_parent_role\"" +terraform import snowflake_grant_database_role.example '"ABC"."test_db_role"|ROLE|"test_parent_role"' ``` diff --git a/docs/resources/grant_ownership.md b/docs/resources/grant_ownership.md index 7f5f6f0419..ad20e6909f 100644 --- a/docs/resources/grant_ownership.md +++ b/docs/resources/grant_ownership.md @@ -313,43 +313,43 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnObject -`terraform import "|||OnObject||"` +`terraform import snowflake_grant_ownership.example '|||OnObject||'` ### OnAll (contains inner types: InDatabase | InSchema) #### InDatabase -`terraform import "|||OnAll||InDatabase|"` +`terraform import snowflake_grant_ownership.example '|||OnAll||InDatabase|'` #### InSchema -`terraform import "|||OnAll||InSchema|"` +`terraform import snowflake_grant_ownership.example '|||OnAll||InSchema|'` ### OnFuture (contains inner types: InDatabase | InSchema) #### InDatabase -`terraform import "|||OnFuture||InDatabase|"` +`terraform import snowflake_grant_ownership.example '|||OnFuture||InDatabase|'` #### InSchema -`terraform import "|||OnFuture||InSchema|"` +`terraform import snowflake_grant_ownership.example '|||OnFuture||InSchema|'` ### Import examples #### OnObject on Schema ToAccountRole -`terraform import "ToAccountRole|\"account_role\"|COPY|OnObject|SCHEMA|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'` #### OnObject on Schema ToDatabaseRole -`terraform import "ToDatabaseRole|\"database_name\".\"database_role_name\"|COPY|OnObject|SCHEMA|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'` #### OnObject on Table -`terraform import "ToAccountRole|\"account_role\"|COPY|OnObject|TABLE|\"database_name\".\"schema_name\".\"table_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'` #### OnAll InDatabase -`terraform import "ToAccountRole|\"account_role\"|REVOKE|OnAll|TABLES|InDatabase|\"database_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|REVOKE|OnAll|TABLES|InDatabase|"database_name"'` #### OnAll InSchema -`terraform import "ToAccountRole|\"account_role\"||OnAll|TABLES|InSchema|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'` #### OnFuture InDatabase -`terraform import "ToAccountRole|\"account_role\"||OnFuture|TABLES|InDatabase|\"database_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"||OnFuture|TABLES|InDatabase|"database_name"'` #### OnFuture InSchema -`terraform import "ToAccountRole|\"account_role\"|COPY|OnFuture|TABLES|InSchema|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."schema_name"'` diff --git a/examples/resources/snowflake_grant_account_role/import.sh b/examples/resources/snowflake_grant_account_role/import.sh index f308c94fa5..f7bfaee609 100644 --- a/examples/resources/snowflake_grant_account_role/import.sh +++ b/examples/resources/snowflake_grant_account_role/import.sh @@ -1,2 +1,2 @@ # format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string) -terraform import "\"test_role\"|ROLE|\"test_parent_role\"" +terraform import snowflake_grant_account_role.example '"test_role"|ROLE|"test_parent_role"' diff --git a/examples/resources/snowflake_grant_application_role/import.sh b/examples/resources/snowflake_grant_application_role/import.sh index ad0caa05b1..7e7a9015c9 100644 --- a/examples/resources/snowflake_grant_application_role/import.sh +++ b/examples/resources/snowflake_grant_application_role/import.sh @@ -1,2 +1,2 @@ # format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string) -terraform import "\"my_application\".\"app_role_1\"|ACCOUNT_ROLE|\"my_role\"" +terraform import snowflake_grant_application_role.example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"' diff --git a/examples/resources/snowflake_grant_database_role/import.sh b/examples/resources/snowflake_grant_database_role/import.sh index 878d3c901a..9798e0298a 100644 --- a/examples/resources/snowflake_grant_database_role/import.sh +++ b/examples/resources/snowflake_grant_database_role/import.sh @@ -1,2 +1,2 @@ # format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string) -terraform import "\"ABC\".\"test_db_role\"|ROLE|\"test_parent_role\"" +terraform import snowflake_grant_database_role.example '"ABC"."test_db_role"|ROLE|"test_parent_role"' diff --git a/examples/resources/snowflake_grant_ownership/import.sh b/examples/resources/snowflake_grant_ownership/import.sh index e4745f24bc..f56c1db07f 100644 --- a/examples/resources/snowflake_grant_ownership/import.sh +++ b/examples/resources/snowflake_grant_ownership/import.sh @@ -1,41 +1,41 @@ ### OnObject -`terraform import "|||OnObject||"` +`terraform import snowflake_grant_ownership.example '|||OnObject||'` ### OnAll (contains inner types: InDatabase | InSchema) #### InDatabase -`terraform import "|||OnAll||InDatabase|"` +`terraform import snowflake_grant_ownership.example '|||OnAll||InDatabase|'` #### InSchema -`terraform import "|||OnAll||InSchema|"` +`terraform import snowflake_grant_ownership.example '|||OnAll||InSchema|'` ### OnFuture (contains inner types: InDatabase | InSchema) #### InDatabase -`terraform import "|||OnFuture||InDatabase|"` +`terraform import snowflake_grant_ownership.example '|||OnFuture||InDatabase|'` #### InSchema -`terraform import "|||OnFuture||InSchema|"` +`terraform import snowflake_grant_ownership.example '|||OnFuture||InSchema|'` ### Import examples #### OnObject on Schema ToAccountRole -`terraform import "ToAccountRole|\"account_role\"|COPY|OnObject|SCHEMA|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'` #### OnObject on Schema ToDatabaseRole -`terraform import "ToDatabaseRole|\"database_name\".\"database_role_name\"|COPY|OnObject|SCHEMA|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'` #### OnObject on Table -`terraform import "ToAccountRole|\"account_role\"|COPY|OnObject|TABLE|\"database_name\".\"schema_name\".\"table_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'` #### OnAll InDatabase -`terraform import "ToAccountRole|\"account_role\"|REVOKE|OnAll|TABLES|InDatabase|\"database_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|REVOKE|OnAll|TABLES|InDatabase|"database_name"'` #### OnAll InSchema -`terraform import "ToAccountRole|\"account_role\"||OnAll|TABLES|InSchema|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'` #### OnFuture InDatabase -`terraform import "ToAccountRole|\"account_role\"||OnFuture|TABLES|InDatabase|\"database_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"||OnFuture|TABLES|InDatabase|"database_name"'` #### OnFuture InSchema -`terraform import "ToAccountRole|\"account_role\"|COPY|OnFuture|TABLES|InSchema|\"database_name\".\"schema_name\""` +`terraform import snowflake_grant_ownership.example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."schema_name"'` From e92cb4f0bc2bc34da0ec22f098aaab443fd618f5 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 12:21:20 +0100 Subject: [PATCH 6/7] Fix grant import commands in templates --- .../grant_privileges_to_account_role.md | 30 +++++++++---------- .../grant_privileges_to_database_role.md | 28 ++++++++--------- docs/resources/grant_privileges_to_share.md | 14 ++++----- .../grant_privileges_to_account_role.md.tmpl | 30 +++++++++---------- .../grant_privileges_to_database_role.md.tmpl | 28 ++++++++--------- .../grant_privileges_to_share.md.tmpl | 14 ++++----- 6 files changed, 72 insertions(+), 72 deletions(-) diff --git a/docs/resources/grant_privileges_to_account_role.md b/docs/resources/grant_privileges_to_account_role.md index 5e44a8c15c..a314c5dd16 100644 --- a/docs/resources/grant_privileges_to_account_role.md +++ b/docs/resources/grant_privileges_to_account_role.md @@ -346,7 +346,7 @@ Optional: Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_account_role.example '|||||'` where: - account_role_name - fully qualified identifier @@ -359,62 +359,62 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnAccount -`terraform import "||||OnAccount` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccount'` ### OnAccountObject -`terraform import "||||OnAccountObject||` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccountObject||'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnAccountObject (Database) -`terraform import "\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|ALL|OnAccountObject|DATABASE|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/docs/resources/grant_privileges_to_database_role.md b/docs/resources/grant_privileges_to_database_role.md index 332e61eaa9..81f34a561a 100644 --- a/docs/resources/grant_privileges_to_database_role.md +++ b/docs/resources/grant_privileges_to_database_role.md @@ -251,7 +251,7 @@ Optional: Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_database_role.example '|||||'` where: - database_role_name - fully qualified identifier @@ -264,59 +264,59 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnDatabase -`terraform import "||||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnDatabase|'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|ALL|OnDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|ALL|OnDatabase|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/docs/resources/grant_privileges_to_share.md b/docs/resources/grant_privileges_to_share.md index 6f267e8b09..cbfb9e14fb 100644 --- a/docs/resources/grant_privileges_to_share.md +++ b/docs/resources/grant_privileges_to_share.md @@ -131,7 +131,7 @@ resource "snowflake_grant_privileges_to_share" "example" { Import is supported using the following syntax: -`terraform import "|||"` +`terraform import snowflake_grant_privileges_to_share.example '|||'` where: - share_name - fully qualified identifier @@ -140,19 +140,19 @@ where: - grant_identifier - fully qualified identifier ### OnDatabase -`terraform import "||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_share.example '||OnDatabase|'` ### OnSchema -`terraform import "||OnSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnSchema|.'` ### OnTable -`terraform import "||OnTable|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTable|..'` ### OnSchema -`terraform import "||OnAllTablesInSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnAllTablesInSchema|.'` ### OnTag -`terraform import "||OnTag|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTag|..'` ### OnView -`terraform import "||OnView|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnView|..'` diff --git a/templates/resources/grant_privileges_to_account_role.md.tmpl b/templates/resources/grant_privileges_to_account_role.md.tmpl index 9179c4be7b..f58bc379e2 100644 --- a/templates/resources/grant_privileges_to_account_role.md.tmpl +++ b/templates/resources/grant_privileges_to_account_role.md.tmpl @@ -42,7 +42,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_account_role.example '|||||'` where: - account_role_name - fully qualified identifier @@ -55,62 +55,62 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnAccount -`terraform import "||||OnAccount` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccount'` ### OnAccountObject -`terraform import "||||OnAccountObject||` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccountObject||'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnAccountObject (Database) -`terraform import "\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|ALL|OnAccountObject|DATABASE|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/templates/resources/grant_privileges_to_database_role.md.tmpl b/templates/resources/grant_privileges_to_database_role.md.tmpl index 3561437f51..3b3a2fcb70 100644 --- a/templates/resources/grant_privileges_to_database_role.md.tmpl +++ b/templates/resources/grant_privileges_to_database_role.md.tmpl @@ -37,7 +37,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_database_role.example '|||||'` where: - database_role_name - fully qualified identifier @@ -50,59 +50,59 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnDatabase -`terraform import "||||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnDatabase|'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|ALL|OnDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|ALL|OnDatabase|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/templates/resources/grant_privileges_to_share.md.tmpl b/templates/resources/grant_privileges_to_share.md.tmpl index b90ca9b64c..c9c79fb2d3 100644 --- a/templates/resources/grant_privileges_to_share.md.tmpl +++ b/templates/resources/grant_privileges_to_share.md.tmpl @@ -36,7 +36,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||"` +`terraform import snowflake_grant_privileges_to_share.example '|||'` where: - share_name - fully qualified identifier @@ -45,19 +45,19 @@ where: - grant_identifier - fully qualified identifier ### OnDatabase -`terraform import "||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_share.example '||OnDatabase|'` ### OnSchema -`terraform import "||OnSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnSchema|.'` ### OnTable -`terraform import "||OnTable|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTable|..'` ### OnSchema -`terraform import "||OnAllTablesInSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnAllTablesInSchema|.'` ### OnTag -`terraform import "||OnTag|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTag|..'` ### OnView -`terraform import "||OnView|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnView|..'` From 8d56b93289b52ffae6bb8e1af83f8e98617f241d Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Fri, 8 Nov 2024 13:24:05 +0100 Subject: [PATCH 7/7] Fix after review --- docs/resources/grant_ownership.md | 2 +- templates/resources/grant_ownership.md.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/grant_ownership.md b/docs/resources/grant_ownership.md index ad20e6909f..03eb48c244 100644 --- a/docs/resources/grant_ownership.md +++ b/docs/resources/grant_ownership.md @@ -301,7 +301,7 @@ Optional: Import is supported using the following syntax: -`terraform import "||||"` +`terraform import snowflake_grant_ownership.example '||||'` where: - role_type - string - type of granted role (either ToAccountRole or ToDatabaseRole) diff --git a/templates/resources/grant_ownership.md.tmpl b/templates/resources/grant_ownership.md.tmpl index 84ad10d5ab..59569cf852 100644 --- a/templates/resources/grant_ownership.md.tmpl +++ b/templates/resources/grant_ownership.md.tmpl @@ -68,7 +68,7 @@ To set the `AUTO_REFRESH` property back to `TRUE` (after you transfer ownership) Import is supported using the following syntax: -`terraform import "||||"` +`terraform import snowflake_grant_ownership.example '||||'` where: - role_type - string - type of granted role (either ToAccountRole or ToDatabaseRole)