chore: update docs
All checks were successful
CI Workflow / Check GoReleaser config (pull_request) Successful in 1m20s
Notify on new PR / Notify via Google Chat (pull_request) Successful in 1m20s
CI Workflow / Prepare GO cache (pull_request) Successful in 2m53s
CI Workflow / CI run build and linting (pull_request) Successful in 10m9s
CI Workflow / CI run tests (pull_request) Successful in 10m42s
CI Workflow / Code coverage report (pull_request) Successful in 47s
TF Acceptance Tests Workflow / Acceptance Tests (pull_request) Successful in 17m46s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 21m10s

This commit is contained in:
Marcel S. Henselin 2026-05-07 09:49:17 +02:00
parent 6c26089930
commit 2f2b5cd04a
2 changed files with 52 additions and 0 deletions

View file

@ -13,6 +13,33 @@ description: |-
## Example Usage
```terraform
# NOTE: flavor handling will change in future
# V2 compatible flavor usage (example without encryption)
resource "stackitprivatepreview_postgresflexalpha_instance" "example-instance" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
backup_schedule = "0 0 * * *"
retention_days = 30
flavor = {
cpu = 2
ram = 4
}
replicas = 1
storage = {
performance_class = "premium-perf2-stackit"
size = 10
}
network = {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
access_scope = "PUBLIC"
}
version = 17
}
# future use of flavor (implemented in V3 API)
# first determine flavor and then use the flavor_id
resource "stackitprivatepreview_postgresflexalpha_instance" "example-instance" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"

View file

@ -13,6 +13,31 @@ description: |-
## Example Usage
```terraform
# NOTE: flavor handling will change in future
# V2 compatible flavor usage
resource "stackitprivatepreview_sqlserverflexbeta_instance" "instance" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
backup_schedule = "0 3 * * *"
retention_days = 31
flavor = {
cpu = 2
ram = 4
}
storage = {
class = "premium-perf2-stackit"
size = 50
}
version = 2022
network = {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
access_scope = "SNA"
}
}
# future use of flavor (implemented in V3 API)
# first determine flavor and then use the flavor_id
# without encryption and SNA
resource "stackitprivatepreview_sqlserverflexbeta_instance" "instance" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"