Improve region details (#90)
* Make client config error message more clear * Add missing log * Add region detail to resource/data source description * Generate docs * Remove resourcemanager using region * Apply changes to MongoDBFlex user * Generate docs * Fix wrong description --------- Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
This commit is contained in:
parent
20f3496242
commit
9d11098102
102 changed files with 200 additions and 193 deletions
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_argus_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
Argus instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_argus_instance (Data Source)
|
||||
|
||||
|
||||
Argus instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_argus_scrapeconfig Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
Argus scrape config data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_argus_scrapeconfig (Data Source)
|
||||
|
||||
|
||||
Argus scrape config data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_logme_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
LogMe credential data source schema.
|
||||
LogMe credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_logme_credential (Data Source)
|
||||
|
||||
LogMe credential data source schema.
|
||||
LogMe credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_logme_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
LogMe instance data source schema.
|
||||
LogMe instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_logme_instance (Data Source)
|
||||
|
||||
LogMe instance data source schema.
|
||||
LogMe instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mariadb_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MariaDB credential data source schema.
|
||||
MariaDB credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mariadb_credential (Data Source)
|
||||
|
||||
MariaDB credential data source schema.
|
||||
MariaDB credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mariadb_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MariaDB instance data source schema.
|
||||
MariaDB instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mariadb_instance (Data Source)
|
||||
|
||||
MariaDB instance data source schema.
|
||||
MariaDB instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mongodbflex_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MongoDB Flex instance data source schema.
|
||||
MongoDB Flex instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mongodbflex_instance (Data Source)
|
||||
|
||||
MongoDB Flex instance data source schema.
|
||||
MongoDB Flex instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mongodbflex_user Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgresFlex user data source schema.
|
||||
PostgresFlex user data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mongodbflex_user (Data Source)
|
||||
|
||||
PostgresFlex user data source schema.
|
||||
PostgresFlex user data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_bucket Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage bucket data source schema.
|
||||
ObjectStorage bucket data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_bucket (Data Source)
|
||||
|
||||
ObjectStorage bucket data source schema.
|
||||
ObjectStorage bucket data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage credential data source schema.
|
||||
ObjectStorage credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_credential (Data Source)
|
||||
|
||||
ObjectStorage credential data source schema.
|
||||
ObjectStorage credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_credentials_group Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage credentials group data source schema.
|
||||
ObjectStorage credentials group data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_credentials_group (Data Source)
|
||||
|
||||
ObjectStorage credentials group data source schema.
|
||||
ObjectStorage credentials group data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_opensearch_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
OpenSearch credential data source schema.
|
||||
OpenSearch credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_opensearch_credential (Data Source)
|
||||
|
||||
OpenSearch credential data source schema.
|
||||
OpenSearch credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_opensearch_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
OpenSearch instance data source schema.
|
||||
OpenSearch instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_opensearch_instance (Data Source)
|
||||
|
||||
OpenSearch instance data source schema.
|
||||
OpenSearch instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresflex_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgresFlex instance data source schema.
|
||||
PostgresFlex instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresflex_instance (Data Source)
|
||||
|
||||
PostgresFlex instance data source schema.
|
||||
PostgresFlex instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresflex_user Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgresFlex user data source schema.
|
||||
PostgresFlex user data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresflex_user (Data Source)
|
||||
|
||||
PostgresFlex user data source schema.
|
||||
PostgresFlex user data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresql_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgreSQL credential data source schema.
|
||||
PostgreSQL credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresql_credential (Data Source)
|
||||
|
||||
PostgreSQL credential data source schema.
|
||||
PostgreSQL credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresql_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgreSQL instance data source schema.
|
||||
PostgreSQL instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresql_instance (Data Source)
|
||||
|
||||
PostgreSQL instance data source schema.
|
||||
PostgreSQL instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_rabbitmq_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
RabbitMQ credential data source schema.
|
||||
RabbitMQ credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_rabbitmq_credential (Data Source)
|
||||
|
||||
RabbitMQ credential data source schema.
|
||||
RabbitMQ credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_rabbitmq_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
RabbitMQ instance data source schema.
|
||||
RabbitMQ instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_rabbitmq_instance (Data Source)
|
||||
|
||||
RabbitMQ instance data source schema.
|
||||
RabbitMQ instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_redis_credential Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Redis credential data source schema.
|
||||
Redis credential data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_redis_credential (Data Source)
|
||||
|
||||
Redis credential data source schema.
|
||||
Redis credential data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_redis_instance Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Redis instance data source schema.
|
||||
Redis instance data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_redis_instance (Data Source)
|
||||
|
||||
Redis instance data source schema.
|
||||
Redis instance data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_ske_cluster Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
SKE Cluster data source schema.
|
||||
SKE Cluster data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_ske_cluster (Data Source)
|
||||
|
||||
SKE Cluster data source schema.
|
||||
SKE Cluster data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_ske_project Data Source - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
SKE project data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_ske_project (Data Source)
|
||||
|
||||
|
||||
SKE project data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_argus_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
Argus credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_argus_credential (Resource)
|
||||
|
||||
|
||||
Argus credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_argus_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
Argus instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_argus_instance (Resource)
|
||||
|
||||
|
||||
Argus instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_argus_scrapeconfig Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
Argus scrape config resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_argus_scrapeconfig (Resource)
|
||||
|
||||
|
||||
Argus scrape config resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_logme_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
LogMe credential resource schema.
|
||||
LogMe credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_logme_credential (Resource)
|
||||
|
||||
LogMe credential resource schema.
|
||||
LogMe credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_logme_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
LogMe instance resource schema.
|
||||
LogMe instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_logme_instance (Resource)
|
||||
|
||||
LogMe instance resource schema.
|
||||
LogMe instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mariadb_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MariaDB credential resource schema.
|
||||
MariaDB credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mariadb_credential (Resource)
|
||||
|
||||
MariaDB credential resource schema.
|
||||
MariaDB credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mariadb_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MariaDB instance resource schema.
|
||||
MariaDB instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mariadb_instance (Resource)
|
||||
|
||||
MariaDB instance resource schema.
|
||||
MariaDB instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mongodbflex_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MongoDB Flex instance resource schema.
|
||||
MongoDB Flex instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mongodbflex_instance (Resource)
|
||||
|
||||
MongoDB Flex instance resource schema.
|
||||
MongoDB Flex instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_mongodbflex_user Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
MongoDB Flex user resource schema.
|
||||
MongoDB Flex user resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_mongodbflex_user (Resource)
|
||||
|
||||
MongoDB Flex user resource schema.
|
||||
MongoDB Flex user resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_bucket Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage bucket resource schema.
|
||||
ObjectStorage bucket resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_bucket (Resource)
|
||||
|
||||
ObjectStorage bucket resource schema.
|
||||
ObjectStorage bucket resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage credential resource schema.
|
||||
ObjectStorage credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_credential (Resource)
|
||||
|
||||
ObjectStorage credential resource schema.
|
||||
ObjectStorage credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_objectstorage_credentials_group Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
ObjectStorage credentials group resource schema.
|
||||
ObjectStorage credentials group resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_objectstorage_credentials_group (Resource)
|
||||
|
||||
ObjectStorage credentials group resource schema.
|
||||
ObjectStorage credentials group resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_opensearch_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
OpenSearch credential resource schema.
|
||||
OpenSearch credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_opensearch_credential (Resource)
|
||||
|
||||
OpenSearch credential resource schema.
|
||||
OpenSearch credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_opensearch_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
OpenSearch instance resource schema.
|
||||
OpenSearch instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_opensearch_instance (Resource)
|
||||
|
||||
OpenSearch instance resource schema.
|
||||
OpenSearch instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresflex_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgresFlex instance resource schema.
|
||||
PostgresFlex instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresflex_instance (Resource)
|
||||
|
||||
PostgresFlex instance resource schema.
|
||||
PostgresFlex instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresflex_user Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgresFlex user resource schema.
|
||||
PostgresFlex user resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresflex_user (Resource)
|
||||
|
||||
PostgresFlex user resource schema.
|
||||
PostgresFlex user resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresql_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgreSQL credential resource schema.
|
||||
PostgreSQL credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresql_credential (Resource)
|
||||
|
||||
PostgreSQL credential resource schema.
|
||||
PostgreSQL credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_postgresql_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
PostgreSQL instance resource schema.
|
||||
PostgreSQL instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_postgresql_instance (Resource)
|
||||
|
||||
PostgreSQL instance resource schema.
|
||||
PostgreSQL instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_rabbitmq_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
RabbitMQ credential resource schema.
|
||||
RabbitMQ credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_rabbitmq_credential (Resource)
|
||||
|
||||
RabbitMQ credential resource schema.
|
||||
RabbitMQ credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_rabbitmq_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
RabbitMQ instance resource schema.
|
||||
RabbitMQ instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_rabbitmq_instance (Resource)
|
||||
|
||||
RabbitMQ instance resource schema.
|
||||
RabbitMQ instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_redis_credential Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Redis credential resource schema.
|
||||
Redis credential resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_redis_credential (Resource)
|
||||
|
||||
Redis credential resource schema.
|
||||
Redis credential resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_redis_instance Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Redis instance resource schema.
|
||||
Redis instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_redis_instance (Resource)
|
||||
|
||||
Redis instance resource schema.
|
||||
Redis instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_ske_cluster Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
SKE Cluster Resource schema.
|
||||
SKE Cluster Resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_ske_cluster (Resource)
|
||||
|
||||
SKE Cluster Resource schema.
|
||||
SKE Cluster Resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
page_title: "stackit_ske_project Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
|
||||
SKE project resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackit_ske_project (Resource)
|
||||
|
||||
|
||||
SKE project resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", err.Error())
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -86,6 +86,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "Argus credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`username`\".",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (d *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
)
|
||||
}
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
d.client = apiClient
|
||||
|
|
@ -73,6 +73,7 @@ func (d *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (d *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "Argus instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -114,6 +114,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "Argus instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
|
||||
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
|
||||
"github.com/hashicorp/terraform-plugin-framework/types"
|
||||
"github.com/hashicorp/terraform-plugin-log/tflog"
|
||||
"github.com/stackitcloud/stackit-sdk-go/core/config"
|
||||
"github.com/stackitcloud/stackit-sdk-go/services/argus"
|
||||
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
|
||||
|
|
@ -64,7 +65,7 @@ func (d *scrapeConfigDataSource) Configure(ctx context.Context, req datasource.C
|
|||
)
|
||||
}
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
d.client = apiClient
|
||||
|
|
@ -73,6 +74,7 @@ func (d *scrapeConfigDataSource) Configure(ctx context.Context, req datasource.C
|
|||
// Schema defines the schema for the data source.
|
||||
func (d *scrapeConfigDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "Argus scrape config data source schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`,`name`\".",
|
||||
|
|
@ -215,4 +217,5 @@ func (d *scrapeConfigDataSource) Read(ctx context.Context, req datasource.ReadRe
|
|||
if resp.Diagnostics.HasError() {
|
||||
return
|
||||
}
|
||||
tflog.Info(ctx, "Argus scrape config read")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ func (r *scrapeConfigResource) Configure(ctx context.Context, req resource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", err.Error())
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
r.client = apiClient
|
||||
|
|
@ -124,6 +124,7 @@ func (r *scrapeConfigResource) Configure(ctx context.Context, req resource.Confi
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "Argus scrape config resource schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`name`\".",
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ func (d *recordSetDataSource) Configure(ctx context.Context, req datasource.Conf
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ func (r *recordSetResource) Configure(ctx context.Context, req resource.Configur
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ func (d *zoneDataSource) Configure(ctx context.Context, req datasource.Configure
|
|||
)
|
||||
}
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ func (r *zoneResource) Configure(ctx context.Context, req resource.ConfigureRequ
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "LogMe credential data source schema.",
|
||||
"main": "LogMe credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the LogMe instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "LogMe credential resource schema.",
|
||||
"main": "LogMe credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the LogMe instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "LogMe instance data source schema.",
|
||||
"main": "LogMe instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. 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.",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "LogMe instance resource schema.",
|
||||
"main": "LogMe instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MariaDB credential data source schema.",
|
||||
"main": "MariaDB credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the MariaDB instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MariaDB credential resource schema.",
|
||||
"main": "MariaDB credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the MariaDB instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MariaDB instance data source schema.",
|
||||
"main": "MariaDB instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. 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.",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MariaDB instance resource schema.",
|
||||
"main": "MariaDB instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MongoDB Flex instance data source schema.",
|
||||
"main": "MongoDB Flex instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"instance_id": "ID of the MongoDB Flex instance.",
|
||||
"project_id": "STACKIT project ID to which the instance is associated.",
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MongoDB Flex instance resource schema.",
|
||||
"main": "MongoDB Flex instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"instance_id": "ID of the MongoDB Flex instance.",
|
||||
"project_id": "STACKIT project ID to which the instance is associated.",
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *userDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgresFlex user data source schema.",
|
||||
"main": "PostgresFlex user data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`,`user_id`\".",
|
||||
"user_id": "User ID.",
|
||||
"instance_id": "ID of the PostgresFlex instance.",
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ func (r *userResource) Configure(ctx context.Context, req resource.ConfigureRequ
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ func (r *userResource) Configure(ctx context.Context, req resource.ConfigureRequ
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "MongoDB Flex user resource schema.",
|
||||
"main": "MongoDB Flex user resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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 MongoDB Flex instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *bucketDataSource) Configure(ctx context.Context, req datasource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *bucketDataSource) Configure(ctx context.Context, req datasource.Configu
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *bucketDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage bucket data source schema.",
|
||||
"main": "ObjectStorage bucket data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source identifier. It is structured as \"`project_id`,`name`\".",
|
||||
"name": "The bucket name. It must be DNS conform.",
|
||||
"project_id": "STACKIT Project ID to which the bucket is associated.",
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ func (r *bucketResource) Configure(ctx context.Context, req resource.ConfigureRe
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ func (r *bucketResource) Configure(ctx context.Context, req resource.ConfigureRe
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *bucketResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage bucket resource schema.",
|
||||
"main": "ObjectStorage bucket resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`name`\".",
|
||||
"name": "The bucket name. It must be DNS conform.",
|
||||
"project_id": "STACKIT Project ID to which the bucket is associated.",
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the datasource.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage credential data source schema.",
|
||||
"main": "ObjectStorage credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`credentials_group_id`,`credential_id`\".",
|
||||
"credential_id": "The credential ID.",
|
||||
"credentials_group_id": "The credential group ID.",
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage credential resource schema.",
|
||||
"main": "ObjectStorage credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`credentials_group_id`,`credential_id`\".",
|
||||
"credential_id": "The credential ID.",
|
||||
"credentials_group_id": "The credential group ID.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *credentialsGroupDataSource) Configure(ctx context.Context, req datasour
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *credentialsGroupDataSource) Configure(ctx context.Context, req datasour
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialsGroupDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage credentials group data source schema.",
|
||||
"main": "ObjectStorage credentials group data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source identifier. It is structured as \"`project_id`,`credentials_group_id`\".",
|
||||
"credentials_group_id": "The credentials group ID",
|
||||
"name": "The credentials group's display name.",
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ func (r *credentialsGroupResource) Configure(ctx context.Context, req resource.C
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ func (r *credentialsGroupResource) Configure(ctx context.Context, req resource.C
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialsGroupResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "ObjectStorage credentials group resource schema.",
|
||||
"main": "ObjectStorage credentials group resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source identifier. It is structured as \"`project_id`,`credentials_group_id`\".",
|
||||
"credentials_group_id": "The credentials group ID",
|
||||
"name": "The credentials group's display name.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "OpenSearch credential data source schema.",
|
||||
"main": "OpenSearch credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the OpenSearch instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "OpenSearch credential resource schema.",
|
||||
"main": "OpenSearch credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the OpenSearch instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "OpenSearch instance data source schema.",
|
||||
"main": "OpenSearch instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. 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.",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "OpenSearch instance resource schema.",
|
||||
"main": "OpenSearch instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgresFlex instance data source schema.",
|
||||
"main": "PostgresFlex instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. 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.",
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgresFlex instance resource schema.",
|
||||
"main": "PostgresFlex instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *userDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgresFlex user data source schema.",
|
||||
"main": "PostgresFlex user data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`,`user_id`\".",
|
||||
"user_id": "User ID.",
|
||||
"instance_id": "ID of the PostgresFlex instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *userResource) Configure(ctx context.Context, req resource.ConfigureRequ
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *userResource) Configure(ctx context.Context, req resource.ConfigureRequ
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgresFlex user resource schema.",
|
||||
"main": "PostgresFlex user resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgreSQL credential data source schema.",
|
||||
"main": "PostgreSQL credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the PostgreSQL instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgreSQL credential resource schema.",
|
||||
"main": "PostgreSQL credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the PostgreSQL instance.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgreSQL instance data source schema.",
|
||||
"main": "PostgreSQL instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. 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.",
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "PostgreSQL instance resource schema.",
|
||||
"main": "PostgreSQL instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "RabbitMQ credential data source schema.",
|
||||
"main": "RabbitMQ credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the RabbitMQ instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "RabbitMQ credential resource schema.",
|
||||
"main": "RabbitMQ credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the RabbitMQ instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "RabbitMQ instance data source schema.",
|
||||
"main": "RabbitMQ instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. 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.",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "RabbitMQ instance resource schema.",
|
||||
"main": "RabbitMQ instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Redis credential data source schema.",
|
||||
"main": "Redis credential data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the Redis instance.",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ func (r *credentialResource) Configure(ctx context.Context, req resource.Configu
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Redis credential resource schema.",
|
||||
"main": "Redis credential resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`,`credential_id`\".",
|
||||
"credential_id": "The credential's ID.",
|
||||
"instance_id": "ID of the Redis instance.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Redis instance data source schema.",
|
||||
"main": "Redis instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal data source. 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.",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Redis instance resource schema.",
|
||||
"main": "Redis instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -74,11 +74,10 @@ func (d *projectDataSource) Configure(ctx context.Context, req datasource.Config
|
|||
apiClient, err = resourcemanager.NewAPIClient(
|
||||
config.WithCustomAuth(providerData.RoundTripper),
|
||||
config.WithServiceAccountEmail(providerData.ServiceAccountEmail),
|
||||
config.WithRegion(providerData.Region),
|
||||
)
|
||||
}
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,12 +88,11 @@ func (r *projectResource) Configure(ctx context.Context, req resource.ConfigureR
|
|||
apiClient, err = resourcemanager.NewAPIClient(
|
||||
config.WithCustomAuth(providerData.RoundTripper),
|
||||
config.WithServiceAccountEmail(providerData.ServiceAccountEmail),
|
||||
config.WithRegion(providerData.Region),
|
||||
)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Secrets Manager instance data source schema.",
|
||||
"main": "Secrets Manager instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"instance_id": "ID of the Secrets Manager instance.",
|
||||
"project_id": "STACKIT project ID to which the instance is associated.",
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Secrets Manager instance resource schema.",
|
||||
"main": "Secrets Manager instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"id": "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"instance_id": "ID of the Secrets Manager instance.",
|
||||
"project_id": "STACKIT project ID to which the instance is associated.",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func (r *clusterDataSource) Configure(ctx context.Context, req datasource.Config
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the data source configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ func (r *clusterDataSource) Configure(ctx context.Context, req datasource.Config
|
|||
}
|
||||
func (r *clusterDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "SKE Cluster data source schema.",
|
||||
Description: "SKE Cluster data source schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`,`name`\".",
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ func (r *clusterResource) Configure(ctx context.Context, req resource.ConfigureR
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v", err))
|
||||
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring API client", fmt.Sprintf("Configuring client: %v. This is an error related to the provider configuration, not to the resource configuration", err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ func (r *clusterResource) Configure(ctx context.Context, req resource.ConfigureR
|
|||
// Schema defines the schema for the resource.
|
||||
func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
resp.Schema = schema.Schema{
|
||||
Description: "SKE Cluster Resource schema.",
|
||||
Description: "SKE Cluster Resource schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`name`\".",
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue