Skip to content

Commit a29c954

Browse files
hcsa73Henrique Santos
andauthored
Add deprecation message for postgresql resources and data sources (#247)
* Update dependency * Add deprecation messages * Modify markdown description * Add year * Typo fix --------- Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
1 parent b171e8a commit a29c954

15 files changed

Lines changed: 122 additions & 9 deletions

File tree

docs/data-sources/argus_scrapeconfig.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data "stackit_argus_scrapeconfig" "example" {
3434
- `basic_auth` (Attributes) A basic authentication block. (see [below for nested schema](#nestedatt--basic_auth))
3535
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`instance_id`,`name`".
3636
- `metrics_path` (String) Specifies the job scraping url path.
37-
- `saml2` (Attributes) A SAML2 configuration block (see [below for nested schema](#nestedatt--saml2))
37+
- `saml2` (Attributes) A SAML2 configuration block. (see [below for nested schema](#nestedatt--saml2))
3838
- `sample_limit` (Number) Specifies the scrape sample limit.
3939
- `scheme` (String) Specifies the http scheme.
4040
- `scrape_interval` (String) Specifies the scrape interval as duration string.
@@ -55,7 +55,7 @@ Read-Only:
5555

5656
Read-Only:
5757

58-
- `enable_url_parameters` (Boolean) Are URL parameters be enabled?
58+
- `enable_url_parameters` (Boolean) Specifies if URL parameters are enabled
5959

6060

6161
<a id="nestedatt--targets"></a>

docs/data-sources/loadbalancer.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,25 @@ Read-Only:
6969
<a id="nestedatt--target_pools"></a>
7070
### Nested Schema for `target_pools`
7171

72+
Optional:
73+
74+
- `session_persistence` (Attributes) Here you can setup various session persistence options, so far only "`use_source_ip_address`" is supported. (see [below for nested schema](#nestedatt--target_pools--session_persistence))
75+
7276
Read-Only:
7377

7478
- `active_health_check` (Attributes) (see [below for nested schema](#nestedatt--target_pools--active_health_check))
7579
- `name` (String) Target pool name.
7680
- `target_port` (Number) Identical port number where each target listens for traffic.
7781
- `targets` (Attributes List) List of all targets which will be used in the pool. Limited to 250. (see [below for nested schema](#nestedatt--target_pools--targets))
7882

83+
<a id="nestedatt--target_pools--session_persistence"></a>
84+
### Nested Schema for `target_pools.session_persistence`
85+
86+
Optional:
87+
88+
- `use_source_ip_address` (Boolean) If true then all connections from one source IP address are redirected to the same target. This setting changes the load balancing algorithm to Maglev.
89+
90+
7991
<a id="nestedatt--target_pools--active_health_check"></a>
8092
### Nested Schema for `target_pools.active_health_check`
8193

docs/data-sources/postgresql_credential.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ page_title: "stackit_postgresql_credential Data Source - stackit"
44
subcategory: ""
55
description: |-
66
PostgreSQL credential data source schema. Must have a region specified in the provider configuration.
7+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Data sources of this type will stop working after that. Use stackitpostgresflexuser instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
78
---
89

910
# stackit_postgresql_credential (Data Source)
1011

1112
PostgreSQL credential data source schema. Must have a `region` specified in the provider configuration.
1213

14+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Data sources of this type will stop working after that. Use stackit_postgresflex_user instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
15+
1316
## Example Usage
1417

1518
```terraform

docs/data-sources/postgresql_instance.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ page_title: "stackit_postgresql_instance Data Source - stackit"
44
subcategory: ""
55
description: |-
66
PostgreSQL instance data source schema. Must have a region specified in the provider configuration.
7+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Data sources of this type will stop working after that. Use stackitpostgresflexinstance instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
78
---
89

910
# stackit_postgresql_instance (Data Source)
1011

1112
PostgreSQL instance data source schema. Must have a `region` specified in the provider configuration.
1213

14+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Data sources of this type will stop working after that. Use stackit_postgresflex_instance instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
15+
1316
## Example Usage
1417

1518
```terraform

docs/index.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,34 @@ Using this flow is less secure since the token is long-lived. You can provide th
107107
2. Setting the environment variable `STACKIT_SERVICE_ACCOUNT_TOKEN`
108108
3. Setting it in the credentials file (see above)
109109

110+
# Backend configuration
111+
112+
To keep track of your terraform state, you can configure an [S3 backend](https://developer.hashicorp.com/terraform/language/settings/backends/s3) using [STACKIT Object Storage](https://docs.stackit.cloud/stackit/en/object-storage-s3-compatible-71009778.html).
113+
114+
To do so, you need an Object Storage [S3 bucket](https://docs.stackit.cloud/stackit/en/basic-concept-objectstorage-71009785.html#BasicConceptObjectStorage-Buckets) and [credentials](https://docs.stackit.cloud/stackit/en/basic-concept-objectstorage-71009785.html#BasicConceptObjectStorage-Credentials) to access it. If you need to create them, check [Getting Started - Object Storage](https://docs.stackit.cloud/stackit/en/getting-started-objectstorage-71009792.html).
115+
116+
Once you have everything setup, you can configure the backend by adding the following block to your terraform configuration:
117+
118+
```
119+
terraform {
120+
backend "s3" {
121+
bucket = "BUCKET_NAME"
122+
key = "path/to/key"
123+
endpoints = {
124+
s3 = "https://object.storage.eu01.onstackit.cloud"
125+
}
126+
region = "eu01"
127+
skip_credentials_validation = true
128+
skip_region_validation = true
129+
skip_s3_checksum = true
130+
skip_requesting_account_id = true
131+
secret_key = "SECRET_KEY"
132+
access_key = "ACCESS_KEY"
133+
}
134+
}
135+
```
136+
137+
Note: AWS specific checks must be skipped as they do not work on STACKIT. For details on what those validations do, see [here](https://developer.hashicorp.com/terraform/language/settings/backends/s3#configuration).
110138
<!-- schema generated by tfplugindocs -->
111139
## Schema
112140

docs/resources/argus_scrapeconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ Required:
8282

8383
Optional:
8484

85-
- `enable_url_parameters` (Boolean) Are URL parameters be enabled?
85+
- `enable_url_parameters` (Boolean) Specifies if URL parameters are enabled.

docs/resources/loadbalancer.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ provider "openstack" {
5959
}
6060
6161
```
62-
62+
6363
### Configuring the supporting infrastructure
6464

6565
The example below uses OpenStack to create the network, router, a public IP address and a compute instance.
@@ -229,6 +229,7 @@ Required:
229229
Optional:
230230

231231
- `active_health_check` (Attributes) (see [below for nested schema](#nestedatt--target_pools--active_health_check))
232+
- `session_persistence` (Attributes) Here you can setup various session persistence options, so far only "`use_source_ip_address`" is supported. (see [below for nested schema](#nestedatt--target_pools--session_persistence))
232233

233234
<a id="nestedatt--target_pools--targets"></a>
234235
### Nested Schema for `target_pools.targets`
@@ -251,6 +252,14 @@ Optional:
251252
- `unhealthy_threshold` (Number) Unhealthy threshold of the health checking.
252253

253254

255+
<a id="nestedatt--target_pools--session_persistence"></a>
256+
### Nested Schema for `target_pools.session_persistence`
257+
258+
Optional:
259+
260+
- `use_source_ip_address` (Boolean) If true then all connections from one source IP address are redirected to the same target. This setting changes the load balancing algorithm to Maglev.
261+
262+
254263

255264
<a id="nestedatt--options"></a>
256265
### Nested Schema for `options`

docs/resources/postgresql_credential.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ page_title: "stackit_postgresql_credential Resource - stackit"
44
subcategory: ""
55
description: |-
66
PostgreSQL credential resource schema. Must have a region specified in the provider configuration.
7+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Resources of this type will stop working after that. Use stackitpostgresflexuser instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
78
---
89

910
# stackit_postgresql_credential (Resource)
1011

1112
PostgreSQL credential resource schema. Must have a `region` specified in the provider configuration.
1213

14+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Resources of this type will stop working after that. Use stackit_postgresflex_user instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html
15+
1316
## Example Usage
1417

1518
```terraform

docs/resources/postgresql_instance.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ page_title: "stackit_postgresql_instance Resource - stackit"
44
subcategory: ""
55
description: |-
66
PostgreSQL instance resource schema. Must have a region specified in the provider configuration.
7+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Resources of this type will stop working after that. Use stackitpostgresflexinstance instead. Check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html on how to backup and restore an instance from PostgreSQL to PostgreSQL Flex, then import the resource to Terraform using an "import" block (https://developer.hashicorp.com/terraform/language/import)
78
---
89

910
# stackit_postgresql_instance (Resource)
1011

1112
PostgreSQL instance resource schema. Must have a `region` specified in the provider configuration.
1213

14+
!> The STACKIT PostgreSQL service will reach its end of support on June 30th 2024. Resources of this type will stop working after that. Use stackit_postgresflex_instance instead. Check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html on how to backup and restore an instance from PostgreSQL to PostgreSQL Flex, then import the resource to Terraform using an "import" block (https://developer.hashicorp.com/terraform/language/import)
15+
1316
## Example Usage
1417

1518
```terraform

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v0.8.5
2222
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.10.0
2323
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v0.9.0
24-
github.com/stackitcloud/stackit-sdk-go/services/postgresql v0.11.0
24+
github.com/stackitcloud/stackit-sdk-go/services/postgresql v0.12.0
2525
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.10.0
2626
github.com/stackitcloud/stackit-sdk-go/services/redis v0.10.0
2727
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.7.6

0 commit comments

Comments
 (0)