Skip to content

Commit 698bbca

Browse files
authored
chore(docs): update docs (#725)
* chore(deps): bump terraform-plugin-docs from v0.16.0 to v0.21.0 * chore(docs): fix docs after generation using a patchfile * chore(docs): re-generate docs
1 parent 6cc1dff commit 698bbca

14 files changed

+116
-77
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ lint: lint-golangci-lint lint-tf
2323
generate-docs:
2424
@echo "Generating documentation with tfplugindocs"
2525
@$(SCRIPTS_BASE)/tfplugindocs.sh
26+
# workaround until STACKITTPR-165 will be resolved
27+
@git apply $(SCRIPTS_BASE)/docs.patch
2628

2729
build:
2830
@go build -o bin/terraform-provider-stackit

docs/data-sources/objectstorage_bucket.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ data "stackit_objectstorage_bucket" "example" {
3636
- `id` (String) Terraform's internal data source identifier. It is structured as "`project_id`,`name`".
3737
- `url_path_style` (String)
3838
- `url_virtual_hosted_style` (String)
39-
40-

docs/data-sources/objectstorage_credential.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ data "stackit_objectstorage_credentials_group" "example" {
4040
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`credentials_group_id`,`credential_id`".
4141
- `name` (String)
4242
- `secret_access_key` (String, Sensitive)
43-
44-

docs/data-sources/objectstorage_credentials_group.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ data "stackit_objectstorage_credentials_group" "example" {
3636

3737
- `id` (String) Terraform's internal data source identifier. It is structured as "`project_id`,`credentials_group_id`".
3838
- `urn` (String) Credentials group uniform resource name (URN)
39-
40-

docs/data-sources/resourcemanager_project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ data "stackit_resourcemanager_project" "example" {
3333
- `id` (String) Terraform's internal data source. ID. It is structured as "`container_id`".
3434
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}
3535
- `name` (String) Project name.
36-
- `parent_container_id` (String) Parent resource identifier. Both container ID (user-friendly) and UUID are supported
36+
- `parent_container_id` (String) Parent resource identifier. Both container ID (user-friendly) and UUID are supported

docs/resources/affinity_group.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,35 @@ subcategory: ""
55
description: |-
66
Affinity Group schema. Must have a region specified in the provider configuration.
77
Usage with server
8-
```terraform
9-
resource "stackitaffinitygroup" "affinity-group" {
8+
9+
resource "stackit_affinity_group" "affinity-group" {
1010
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1111
name = "example-key-pair"
1212
policy = "soft-affinity"
1313
}
14-
resource "stackitserver" "example-server" {
15-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
14+
15+
resource "stackit_server" "example-server" {
16+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1617
name = "example-server"
17-
bootvolume = {
18+
boot_volume = {
1819
size = 64
19-
sourcetype = "image"
20-
sourceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
20+
source_type = "image"
21+
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
2122
}
22-
affinitygroup = stackitaffinitygroup.affinity-group.affinitygroupid
23-
availabilityzone = "eu01-1"
24-
machinetype = "g1.1"
23+
affinity_group = stackit_affinity_group.affinity-group.affinity_group_id
24+
availability_zone = "eu01-1"
25+
machine_type = "g1.1"
2526
}
26-
```
27+
28+
2729
Policies
28-
hard-affinity- All servers launched in this group will be hosted on the same compute node.hard-anti-affinity- All servers launched in this group will be
29-
hosted on different compute nodes.soft-affinity- All servers launched in this group will be hosted
30-
on the same compute node if possible, but if not possible they still will be scheduled instead of failure.soft-anti-affinity- All servers launched in this group will be hosted on different compute nodes if possible,
30+
31+
hard-affinity- All servers launched in this group will be hosted on the same compute node.
32+
hard-anti-affinity- All servers launched in this group will be
33+
hosted on different compute nodes.
34+
soft-affinity- All servers launched in this group will be hosted
35+
on the same compute node if possible, but if not possible they still will be scheduled instead of failure.
36+
soft-anti-affinity- All servers launched in this group will be hosted on different compute nodes if possible,
3137
but if not possible they still will be scheduled instead of failure.
3238
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
3339
---

docs/resources/argus_credential.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,22 @@ description: |-
77
!> The stackit_argus_credential resource has been deprecated and will be removed after February 26th 2025. Please use stackit_observability_credential instead, which offers the exact same functionality.
88
Example move
99
Example to move the deprecated stackit_argus_credential resource to the new stackit_observability_credential resource:
10-
1. Add a new stackit_observability_credential resource with the same values like your previous stackit_argus_credential resource.
11-
1. Add a moved block which reference the stackit_argus_credential and stackit_observability_credential resource.
12-
1. Remove your old stackit_argus_credential resource and run $ terraform apply.
13-
```terraform
14-
resource "stackitarguscredential" "example" {
15-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
16-
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
10+
Add a new stackit_observability_credential resource with the same values like your previous stackit_argus_credential resource.Add a moved block which reference the stackit_argus_credential and stackit_observability_credential resource.Remove your old stackit_argus_credential resource and run $ terraform apply.
11+
12+
resource "stackit_argus_credential" "example" {
13+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
14+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1715
}
16+
1817
moved {
19-
from = stackitarguscredential.example
20-
to = stackitobservabilitycredential.example
18+
from = stackit_argus_credential.example
19+
to = stackit_observability_credential.example
2120
}
22-
resource "stackitobservabilitycredential" "example" {
23-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
24-
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
21+
22+
resource "stackit_observability_credential" "example" {
23+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
24+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
2525
}
26-
```
2726
---
2827

2928
# stackit_argus_credential (Resource)

docs/resources/argus_instance.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,32 @@ description: |-
77
!> The stackit_argus_instance resource has been deprecated and will be removed after February 26th 2025. Please use stackit_observability_instance instead, which offers the exact same functionality.
88
Example move
99
Example to move the deprecated stackit_argus_instance resource to the newstackit_observability_instance resource:
10-
1. Add a new stackit_observability_instance resource with the same values like your previous stackit_argus_instance resource.
11-
1. Add a moved block which reference the stackit_argus_instance and stackit_observability_instance resource.
12-
1. Remove your old stackit_argus_instance resource and run $ terraform apply.
13-
```terraform
14-
resource "stackitargusinstance" "example" {
15-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
10+
Add a new stackit_observability_instance resource with the same values like your previous stackit_argus_instance resource.Add a moved block which reference the stackit_argus_instance and stackit_observability_instance resource.Remove your old stackit_argus_instance resource and run $ terraform apply.
11+
12+
resource "stackit_argus_instance" "example" {
13+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1614
name = "example-instance"
17-
planname = "Monitoring-Medium-EU01"
15+
plan_name = "Monitoring-Medium-EU01"
1816
acl = ["1.1.1.1/32", "2.2.2.2/32"]
19-
metricsretentiondays = 7
20-
metricsretentiondays5mdownsampling = 30
21-
metricsretentiondays1hdownsampling = 365
17+
metrics_retention_days = 7
18+
metrics_retention_days_5m_downsampling = 30
19+
metrics_retention_days_1h_downsampling = 365
2220
}
21+
2322
moved {
24-
from = stackitargusinstance.example
25-
to = stackitobservabilityinstance.example
23+
from = stackit_argus_instance.example
24+
to = stackit_observability_instance.example
2625
}
27-
resource "stackitobservabilityinstance" "example" {
28-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
26+
27+
resource "stackit_observability_instance" "example" {
28+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
2929
name = "example-instance"
30-
planname = "Monitoring-Medium-EU01"
30+
plan_name = "Monitoring-Medium-EU01"
3131
acl = ["1.1.1.1/32", "2.2.2.2/32"]
32-
metricsretentiondays = 7
33-
metricsretentiondays5mdownsampling = 30
34-
metricsretentiondays1hdownsampling = 365
32+
metrics_retention_days = 7
33+
metrics_retention_days_5m_downsampling = 30
34+
metrics_retention_days_1h_downsampling = 365
3535
}
36-
```
3736
---
3837

3938
# stackit_argus_instance (Resource)

docs/resources/argus_scrapeconfig.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ description: |-
77
!> The stackit_argus_scrapeconfig resource has been deprecated and will be removed after February 26th 2025. Please use stackit_observability_scrapeconfig instead, which offers the exact same functionality.
88
Example move
99
Example to move the deprecated stackit_argus_scrapeconfig resource to the new stackit_observability_scrapeconfig resource:
10-
1. Add a new stackit_observability_scrapeconfig resource with the same values like your previous stackit_argus_scrapeconfig resource.
11-
1. Add a moved block which reference the stackit_argus_scrapeconfig and stackit_observability_scrapeconfig resource.
12-
1. Remove your old stackit_argus_scrapeconfig resource and run $ terraform apply.
13-
```terraform
14-
resource "stackitargusscrapeconfig" "example" {
15-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
16-
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
10+
Add a new stackit_observability_scrapeconfig resource with the same values like your previous stackit_argus_scrapeconfig resource.Add a moved block which reference the stackit_argus_scrapeconfig and stackit_observability_scrapeconfig resource.Remove your old stackit_argus_scrapeconfig resource and run $ terraform apply.
11+
12+
resource "stackit_argus_scrapeconfig" "example" {
13+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
14+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1715
name = "example-job"
18-
metricspath = "/my-metrics"
16+
metrics_path = "/my-metrics"
1917
saml2 = {
20-
enableurl_parameters = true
18+
enable_url_parameters = true
2119
}
2220
targets = [
2321
{
@@ -28,17 +26,19 @@ description: |-
2826
}
2927
]
3028
}
29+
3130
moved {
32-
from = stackitargusscrapeconfig.example
33-
to = stackitobservabilityscrapeconfig.example
31+
from = stackit_argus_scrapeconfig.example
32+
to = stackit_observability_scrapeconfig.example
3433
}
35-
resource "stackitobservabilityscrapeconfig" "example" {
36-
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
37-
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
34+
35+
resource "stackit_observability_scrapeconfig" "example" {
36+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
37+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
3838
name = "example-job"
39-
metricspath = "/my-metrics"
39+
metrics_path = "/my-metrics"
4040
saml2 = {
41-
enableurl_parameters = true
41+
enable_url_parameters = true
4242
}
4343
targets = [
4444
{
@@ -49,7 +49,6 @@ description: |-
4949
}
5050
]
5151
}
52-
```
5352
---
5453

5554
# stackit_argus_scrapeconfig (Resource)

docs/resources/objectstorage_bucket.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ resource "stackit_objectstorage_bucket" "example" {
3636
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`name`".
3737
- `url_path_style` (String)
3838
- `url_virtual_hosted_style` (String)
39-
40-

0 commit comments

Comments
 (0)