diff --git a/datadog/resource_datadog_logs_index.go b/datadog/resource_datadog_logs_index.go index 907d7f6e69..10ceae8532 100644 --- a/datadog/resource_datadog_logs_index.go +++ b/datadog/resource_datadog_logs_index.go @@ -18,9 +18,10 @@ var logsIndexMutex = sync.Mutex{} var indexSchema = map[string]*schema.Schema{ "name": { - Description: "The name of the index.", + Description: "The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.", Type: schema.TypeString, Required: true, + ForceNew: true, }, "disable_daily_limit": { Description: "If true, sets the daily_limit value to null and the index is not limited on a daily basis (any specified daily_limit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.", diff --git a/docs/resources/logs_index.md b/docs/resources/logs_index.md index 9387fbba52..d0e24e4011 100644 --- a/docs/resources/logs_index.md +++ b/docs/resources/logs_index.md @@ -53,7 +53,7 @@ resource "datadog_logs_index" "sample_index" { ### Required - `filter` (Block List, Min: 1, Max: 1) Logs filter (see [below for nested schema](#nestedblock--filter)) -- `name` (String) The name of the index. +- `name` (String) The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created. ### Optional