diff --git a/docs/resources/cockpit_grafana_user.md b/docs/resources/cockpit_grafana_user.md index 0484ba599..3d1825976 100644 --- a/docs/resources/cockpit_grafana_user.md +++ b/docs/resources/cockpit_grafana_user.md @@ -5,6 +5,8 @@ page_title: "Scaleway: scaleway_cockpit_grafana_user" # Resource: scaleway_cockpit_grafana_user +-> **Important:** This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods. Please refer to Scaleway's documentation for migration guidance. + The `scaleway_cockpit_grafana_user` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit. Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information. diff --git a/internal/services/cockpit/grafana_user.go b/internal/services/cockpit/grafana_user.go index c3c152e68..d7ac398e7 100644 --- a/internal/services/cockpit/grafana_user.go +++ b/internal/services/cockpit/grafana_user.go @@ -17,9 +17,10 @@ import ( func ResourceCockpitGrafanaUser() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitGrafanaUserCreate, - ReadContext: ResourceCockpitGrafanaUserRead, - DeleteContext: ResourceCockpitGrafanaUserDelete, + CreateContext: ResourceCockpitGrafanaUserCreate, + ReadContext: ResourceCockpitGrafanaUserRead, + DeleteContext: ResourceCockpitGrafanaUserDelete, + DeprecationMessage: "This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods.", Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(DefaultCockpitTimeout), Read: schema.DefaultTimeout(DefaultCockpitTimeout), diff --git a/templates/resources/cockpit_grafana_user.md.tmpl b/templates/resources/cockpit_grafana_user.md.tmpl index 19afc8956..b35842162 100644 --- a/templates/resources/cockpit_grafana_user.md.tmpl +++ b/templates/resources/cockpit_grafana_user.md.tmpl @@ -6,6 +6,8 @@ page_title: "Scaleway: scaleway_cockpit_grafana_user" # Resource: scaleway_cockpit_grafana_user +-> **Important:** This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods. Please refer to Scaleway's documentation for migration guidance. + The `scaleway_cockpit_grafana_user` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit. Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.