diff --git a/docs/resources/cortex_search_service.md b/docs/resources/cortex_search_service.md index 0998af5aed..8754a72794 100644 --- a/docs/resources/cortex_search_service.md +++ b/docs/resources/cortex_search_service.md @@ -71,6 +71,7 @@ resource "snowflake_cortex_search_service" "test" { - `attributes` (Set of String) Specifies the list of columns in the base table to enable filtering on when issuing queries to the service. - `comment` (String) Specifies a comment for the Cortex search service. +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only @@ -78,6 +79,14 @@ resource "snowflake_cortex_search_service" "test" { - `fully_qualified_name` (String) Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution). - `id` (String) The ID of this resource. + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `update` (String) + ## Import Import is supported using the following syntax: diff --git a/pkg/resources/cortex_search_service.go b/pkg/resources/cortex_search_service.go index 059e537aca..b48b2abb71 100644 --- a/pkg/resources/cortex_search_service.go +++ b/pkg/resources/cortex_search_service.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "log" + "time" "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider" @@ -89,6 +90,10 @@ func CortexSearchService() *schema.Resource { Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(60 * time.Minute), + Update: schema.DefaultTimeout(60 * time.Minute), + }, } }