From 2f2b5cd04a466bc906feef65891109f7c960fe5e Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Thu, 7 May 2026 09:49:17 +0200 Subject: [PATCH] chore: update docs --- docs/resources/postgresflexalpha_instance.md | 27 ++++++++++++++++++++ docs/resources/sqlserverflexbeta_instance.md | 25 ++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/docs/resources/postgresflexalpha_instance.md b/docs/resources/postgresflexalpha_instance.md index 67ed171a..b82664ff 100644 --- a/docs/resources/postgresflexalpha_instance.md +++ b/docs/resources/postgresflexalpha_instance.md @@ -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" diff --git a/docs/resources/sqlserverflexbeta_instance.md b/docs/resources/sqlserverflexbeta_instance.md index d4200e39..a46e76ba 100644 --- a/docs/resources/sqlserverflexbeta_instance.md +++ b/docs/resources/sqlserverflexbeta_instance.md @@ -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"