Document resource's internal ID structure and create foundation for migration guide (#12)

* Add internal ID structure to DSA instance descriptions

* Add internal ID structure to DSA credential descriptions

* Add internal ID structure to Argus descriptions

* Add internal ID structure to DNS descriptions

* Add internal ID structure to PostgresFlex descriptions

* Add internal ID structure to ResourceManager descriptions

* Add internal ID structure to SKE descriptions

* Generate updated docs

* Add first basis for migration guide
This commit is contained in:
João Palet 2023-09-08 19:03:26 +02:00 committed by GitHub
parent 135f86d645
commit 82b0c6ff6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
87 changed files with 111 additions and 99 deletions

12
MIGRATION.md Normal file
View file

@ -0,0 +1,12 @@
# Migration from the Terraform community provider
In this guide, we want to offer some strategy for a migration of configurations from the Terraform community provider to this new official provider. In this provider, some attribute names and structure have changed, as well as the internal resource ID structure.
To import your existing infrastructure resources to the new provider, you'll need the internal ID of each resource. The structure of the new provider's internal ID can be located in the [documentation](./docs/resources) file for each resource, specifically within the description of the `id` attribute.
## How-to
Before you begin the migration process, please ensure that you have done the necessary steps for the [authentication](./README.md#authentication).
For existing resources created with the old provider, you'll need to import them into your new configuration. Terraform provides a feature for importing existing resources and auto-generating new Terraform configuration files. To generate configuration code for the imported resources, refer to the official [Terraform documentation](https://developer.hashicorp.com/terraform/language/import/generating-configuration) for step-by-step guidance.
Once the configuration is generated, compare the generated file with your existing configuration. Be aware that field names may have changed so you should adapt the configuration accordingly. However, not all attributes from the generated configuration are needed for managing the infrastructure, meaning this set of fields can be reduced to the relevant ones from your previous configuration. Check the Terraform plan for the imported resource to identify any differences.

View file

@ -35,7 +35,7 @@ data "stackit_argus_instance" "example" {
- `grafana_initial_admin_user` (String) Specifies an initial Grafana admin username.
- `grafana_public_read_access` (Boolean) If true, anyone can access Grafana dashboards without logging in.
- `grafana_url` (String) Specifies Grafana URL.
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `is_updatable` (Boolean) Specifies if the instance can be updated.
- `jaeger_traces_url` (String)
- `jaeger_ui_url` (String)

View file

@ -32,7 +32,7 @@ data "stackit_argus_scrapeconfig" "example" {
### Read-Only
- `basic_auth` (Attributes) A basic authentication block. (see [below for nested schema](#nestedatt--basic_auth))
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`name`".
- `metrics_path` (String) Specifies the job scraping url path.
- `saml2` (Attributes) A SAML2 configuration block (see [below for nested schema](#nestedatt--saml2))
- `scheme` (String) Specifies the http scheme.

View file

@ -34,7 +34,7 @@ data "stackit_dns_record_set" "example" {
- `active` (Boolean) Specifies if the record set is active or not.
- `comment` (String) Comment.
- `error` (String) Error shows error in case create/update/delete failed.
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`record_set_id`".
- `name` (String) Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. `example.com`
- `records` (List of String) Records.
- `state` (String) Record set state.

View file

@ -36,7 +36,7 @@ data "stackit_dns_zone" "example" {
- `description` (String) Description of the zone.
- `dns_name` (String) The zone name. E.g. `example.com`
- `expire_time` (Number) Expire time.
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`zone_id`".
- `is_reverse_zone` (Boolean) Specifies, if the zone is a reverse zone or not.
- `name` (String) The user given name of the zone.
- `negative_cache` (Number) Negative caching.

View file

@ -34,7 +34,7 @@ data "stackit_logme_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_logme_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`zone_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -34,7 +34,7 @@ data "stackit_mariadb_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_mariadb_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -34,7 +34,7 @@ data "stackit_opensearch_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_opensearch_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -32,7 +32,7 @@ data "stackit_postgresflex_instance" "example" {
- `acl` (List of String) The Access Control List (ACL) for the PostgresFlex instance.
- `backup_schedule` (String)
- `flavor` (Attributes) (see [below for nested schema](#nestedatt--flavor))
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `name` (String) Instance name.
- `replicas` (Number)
- `storage` (Attributes) (see [below for nested schema](#nestedatt--storage))

View file

@ -32,7 +32,7 @@ data "stackit_postgresflex_user" "example" {
### Read-Only
- `host` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`user_id`".
- `password` (String, Sensitive)
- `port` (Number)
- `roles` (Set of String)

View file

@ -34,7 +34,7 @@ data "stackit_postgresql_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_postgresql_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -34,7 +34,7 @@ data "stackit_rabbitmq_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_rabbitmq_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -34,7 +34,7 @@ data "stackit_redis_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -30,12 +30,12 @@ data "stackit_redis_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `name` (String) Instance name.
- `cf_organization_guid` (String)
- `parameters` (Attributes) (see [below for nested schema](#nestedatt--parameters))
- `plan_id` (String) The selected plan ID.
- `plan_name` (String) The selected plan name.

View file

@ -28,7 +28,7 @@ data "stackit_resourcemanager_project" "example" {
### Read-Only
- `id` (String) Terraform's internal unique identifier of the project, equivalent to the container ID
- `id` (String) Terraform's internal resource ID. It is structured as "`container_id`".
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}
- `name` (String) Project name.
- `parent_container_id` (String) Parent container ID

View file

@ -34,7 +34,7 @@ data "stackit_ske_cluster" "example" {
This should be used with care since it also disables a couple of other features like the use of some volume type (e.g. PVCs).
- `extensions` (Attributes) A single extensions block as defined below (see [below for nested schema](#nestedatt--extensions))
- `hibernations` (Attributes List) One or more hibernation block as defined below. (see [below for nested schema](#nestedatt--hibernations))
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`name`".
- `kube_config` (String, Sensitive) Kube config file used for connecting to the cluster
- `kubernetes_version` (String) Kubernetes version.
- `kubernetes_version_used` (String) Full Kubernetes version used. For example, if `1.22` was selected, this value may result to `1.22.15`

View file

@ -27,4 +27,4 @@ data "stackit_ske_project" "example" {
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`".

View file

@ -22,6 +22,6 @@ description: |-
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`username`".
- `password` (String, Sensitive) Credential password
- `username` (String) Credential username

View file

@ -41,7 +41,7 @@ resource "stackit_argus_instance" "example" {
- `grafana_initial_admin_user` (String) Specifies an initial Grafana admin username.
- `grafana_public_read_access` (Boolean) If true, anyone can access Grafana dashboards without logging in.
- `grafana_url` (String) Specifies Grafana URL.
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `instance_id` (String) The Argus instance ID.
- `is_updatable` (Boolean) Specifies if the instance can be updated.
- `jaeger_traces_url` (String)

View file

@ -53,7 +53,7 @@ resource "stackit_argus_scrapeconfig" "example" {
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`name`".
<a id="nestedatt--targets"></a>
### Nested Schema for `targets`

View file

@ -43,6 +43,6 @@ resource "stackit_dns_record_set" "example" {
### Read-Only
- `error` (String) Error shows error in case create/update/delete failed.
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`record_set_id`".
- `record_set_id` (String) The rr set id.
- `state` (String) Record set state.

View file

@ -51,7 +51,7 @@ resource "stackit_dns_zone" "example" {
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`zone_id`".
- `primary_name_server` (String) Primary name server. FQDN.
- `record_count` (Number) Record count how many records are in the zone.
- `serial_number` (Number) Serial number. E.g. `2022111400`.

View file

@ -26,7 +26,7 @@ LogMe credentials resource schema.
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_logme_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the LogMe instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -33,7 +33,7 @@ resource "stackit_mariadb_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_mariadb_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the MariaDB instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -33,7 +33,7 @@ resource "stackit_opensearch_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_opensearch_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the OpenSearch instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -47,7 +47,7 @@ resource "stackit_postgresflex_instance" "example" {
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `instance_id` (String) ID of the PostgresFlex instance.
<a id="nestedatt--flavor"></a>

View file

@ -17,7 +17,7 @@ resource "stackit_postgresflex_user" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
username = "username"
roles = ["role"]
roles = ["role"]
}
```
@ -34,7 +34,7 @@ resource "stackit_postgresflex_user" "example" {
### Read-Only
- `host` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`user_id`".
- `password` (String, Sensitive)
- `port` (Number)
- `user_id` (String) User ID.

View file

@ -33,7 +33,7 @@ resource "stackit_postgresql_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_postgresql_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the PostgreSQL instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -33,7 +33,7 @@ resource "stackit_rabbitmq_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_rabbitmq_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the RabbitMQ instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -33,7 +33,7 @@ resource "stackit_redis_credentials" "example" {
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal resource identifier.
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`instance_id`,`credentials_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)

View file

@ -41,12 +41,12 @@ resource "stackit_redis_instance" "example" {
### Read-Only
- `cf_guid` (String)
- `cf_organization_guid` (String)
- `cf_space_guid` (String)
- `dashboard_url` (String)
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`".
- `image_url` (String)
- `instance_id` (String) ID of the Redis instance.
- `cf_organization_guid` (String)
- `plan_id` (String) The selected plan ID.
<a id="nestedatt--parameters"></a>

View file

@ -40,4 +40,4 @@ resource "stackit_resourcemanager_project" "example" {
### Read-Only
- `container_id` (String) Project container ID. Globally unique, user-friendly identifier.
- `id` (String) Terraform's internal unique identifier of the project, equivalent to the container ID
- `id` (String) Terraform's internal resource ID. It is structured as "`container_id`".

View file

@ -57,7 +57,7 @@ Deprecated as of Kubernetes 1.25 and later
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`name`".
- `kube_config` (String, Sensitive) Kube config file used for connecting to the cluster
- `kubernetes_version_used` (String) Full Kubernetes version used. For example, if 1.22 was selected, this value may result to 1.22.15

View file

@ -27,4 +27,4 @@ resource "stackit_ske_project" "example" {
### Read-Only
- `id` (String) Terraform's internal resource ID.
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`".

View file

@ -86,7 +86,7 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`username`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -76,7 +76,7 @@ func (d *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -113,7 +113,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -78,7 +78,7 @@ func (d *scrapeConfigDataSource) Schema(_ context.Context, _ datasource.SchemaRe
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`name`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -124,7 +124,7 @@ func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaReques
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`name`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -76,7 +76,7 @@ func (d *recordSetDataSource) Schema(_ context.Context, _ datasource.SchemaReque
Description: "DNS Record Set Resource schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`record_set_id`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -104,7 +104,7 @@ func (r *recordSetResource) Schema(_ context.Context, _ resource.SchemaRequest,
Description: "DNS Record Set Resource schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`record_set_id`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -78,7 +78,7 @@ func (d *zoneDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, r
Description: "DNS Zone resource schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`zone_id`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -118,7 +118,7 @@ func (r *zoneResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
Description: "DNS Zone resource schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`zone_id`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "LogMe credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the LogMe instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *logmeCredentialsResource) Configure(ctx context.Context, req resource.C
func (r *logmeCredentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "LogMe credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the LogMe instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "LogMe instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`zone_id`\".",
"instance_id": "ID of the LogMe instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -113,7 +113,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "LogMe instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the LogMe instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "MariaDB credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the MariaDB instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *mariaDBCredentialsResource) Configure(ctx context.Context, req resource
func (r *mariaDBCredentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "MariaDB credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the MariaDB instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "MariaDB instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the MariaDB instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -113,7 +113,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "MariaDB instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the MariaDB instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "OpenSearch credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the OpenSearch instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *openSearchCredentialsResource) Configure(ctx context.Context, req resou
func (r *openSearchCredentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "OpenSearch credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the OpenSearch instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "OpenSearch instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the OpenSearch instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -113,7 +113,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "OpenSearch instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the OpenSearch instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -77,7 +77,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgresFlex instance data source schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the PostgresFlex instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -130,7 +130,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgresFlex instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the PostgresFlex instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -76,7 +76,7 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
func (r *userDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgresFlex user data source schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`user_id`\".",
"user_id": "User ID.",
"instance_id": "ID of the PostgresFlex instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *userResource) Configure(ctx context.Context, req resource.ConfigureRequ
func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgresFlex user resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`user_id`\".",
"user_id": "User ID.",
"instance_id": "ID of the PostgresFlex instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgreSQL credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the PostgreSQL instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *credentialsResource) Configure(ctx context.Context, req resource.Config
func (r *credentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgreSQL credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the PostgreSQL instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -76,7 +76,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgreSQL instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the PostgreSQL instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -123,7 +123,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "PostgreSQL instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the PostgreSQL instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "RabbitMQ credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the RabbitMQ instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *rabbitMQCredentialsResource) Configure(ctx context.Context, req resourc
func (r *rabbitMQCredentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "RabbitMQ credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the RabbitMQ instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "RabbitMQ instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the RabbitMQ instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -114,7 +114,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "RabbitMQ instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the RabbitMQ instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -76,7 +76,7 @@ func (r *credentialsDataSource) Configure(ctx context.Context, req datasource.Co
func (r *credentialsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "Redis credentials data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT project ID to which the instance is associated.",

View file

@ -100,7 +100,7 @@ func (r *postgresCredentialsResource) Configure(ctx context.Context, req resourc
func (r *postgresCredentialsResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "Redis credentials resource schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credentials_id`\".",
"credentials_id": "The credentials ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",

View file

@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "Redis instance data source schema.",
"id": "Terraform's internal resource identifier.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -114,7 +114,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "Redis instance resource schema.",
"id": "Terraform's internal resource ID.",
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"name": "Instance name.",

View file

@ -93,7 +93,7 @@ func (d *projectDataSource) Configure(ctx context.Context, req datasource.Config
func (d *projectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "Resource Manager project data source schema.",
"id": "Terraform's internal unique identifier of the project, equivalent to the container ID",
"id": "Terraform's internal resource ID. It is structured as \"`container_id`\".",
"container_id": "Project container ID.",
"parent_container_id": "Parent container ID",
"name": "Project name.",

View file

@ -104,7 +104,7 @@ func (r *projectResource) Configure(ctx context.Context, req resource.ConfigureR
func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
descriptions := map[string]string{
"main": "Resource Manager project resource schema.",
"id": "Terraform's internal unique identifier of the project, equivalent to the container ID",
"id": "Terraform's internal resource ID. It is structured as \"`container_id`\".",
"container_id": "Project container ID. Globally unique, user-friendly identifier.",
"parent_container_id": "Parent container ID",
"name": "Project name.",

View file

@ -76,7 +76,7 @@ func (r *clusterDataSource) Schema(_ context.Context, _ datasource.SchemaRequest
Description: "SKE Cluster data source schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`name`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -181,7 +181,7 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
Description: "SKE Cluster Resource schema.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`name`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),

View file

@ -76,7 +76,7 @@ func (r *projectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`\".",
Computed: true,
},
"project_id": schema.StringAttribute{

View file

@ -88,7 +88,7 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal resource ID.",
Description: "Terraform's internal resource ID. It is structured as \"`project_id`\".",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),