Skip to content

Commit 65561b4

Browse files
committed
docs(cockpit): mark scaleway_cockpit resource as deprecated and add migration guidance
1 parent d888258 commit 65561b4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/resources/cockpit.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ page_title: "Scaleway: scaleway_cockpit"
55

66
# Resource: scaleway_cockpit
77

8+
~> **Important:** The resource `scaleway_cockpit` has been deprecated and will no longer be supported after January 1st, 2025. Instead, use the new specialized resources:
9+
- `scaleway_cockpit_source` for managing data sources (metrics, logs, traces)
10+
- `scaleway_cockpit_alert_manager` for managing alert manager
11+
- `scaleway_cockpit_grafana_user` for managing Grafana users
12+
13+
For detailed migration instructions, see the [Cockpit Migration Guide](../guides/migration_guide_cockpit_plan.md).
14+
815
-> **Note:**
916
As of September 2024, Cockpit has introduced [regionalization](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#region) to offer more flexibility and resilience.
1017
If you have created customized dashboards with data for your Scaleway resources before April 2024, you will need to update your queries in Grafana, with the new regionalized [data sources](../resources/cockpit_source.md).
@@ -74,8 +81,12 @@ resource "grafana_folder" "test_folder" {
7481
- `plan` - (Deprecated) Name of the plan to use. Available plans are: free, premium, and custom.
7582
~> **Important:** The plan field is deprecated. Any modification or selection will have no effect.
7683

84+
~> **Warning:** This entire resource is deprecated and will be removed after January 1st, 2025. Please migrate to the new specialized resources as described in the [Cockpit Migration Guide](../guides/migration_guide_cockpit_plan.md).
85+
7786
## Attributes Reference
7887

88+
~> **Warning:** This entire resource is deprecated and will be removed after January 1st, 2025. All attributes below are deprecated and will no longer be available.
89+
7990
In addition to all arguments above, the following attributes are exported:
8091

8192
- `plan_id` - (Deprecated) The ID of the current pricing plan.
@@ -86,10 +97,20 @@ In addition to all arguments above, the following attributes are exported:
8697
- `grafana_url` - (Deprecated) URL for Grafana.
8798
- `traces_url` - (Deprecated) URL for [traces](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#traces) to retrieve in the [Data sources tab](https://console.scaleway.com/cockpit/dataSource) of the Scaleway console.
8899

100+
## Migration
101+
102+
This resource is deprecated and will be removed after January 1st, 2025. To migrate to the new infrastructure, please refer to the [Cockpit Migration Guide](../guides/migration_guide_cockpit_plan.md) which provides step-by-step instructions for transitioning to:
103+
104+
- `scaleway_cockpit_source` for managing data sources (metrics, logs, traces)
105+
- `scaleway_cockpit_alert_manager` for managing alert manager
106+
- `scaleway_cockpit_grafana_user` for managing Grafana users
107+
89108
## Import
90109

91110
This section explains how to import a Cockpit using its `{project_id}`.
92111

93112
```bash
94113
terraform import scaleway_cockpit.main 11111111-1111-1111-1111-111111111111
95114
```
115+
116+
~> **Note:** Import functionality will be removed when this resource is deprecated.

0 commit comments

Comments
 (0)