feat: testing #34

Merged
marcel.henselin merged 3 commits from feat/testing into alpha 2026-02-06 09:57:52 +00:00
Showing only changes of commit 1dd19d57b6 - Show all commits

View file

@ -13,21 +13,29 @@ description: |-
## Example Usage ## Example Usage
```terraform ```terraform
resource "stackitprivatepreview_postgresflexalpha_instance" "example" { resource "stackitprivatepreview_postgresflexalpha_instance" "msh-instance-only" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance" name = "example-instance"
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"] acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
backup_schedule = "00 00 * * *" backup_schedule = "0 0 * * *"
flavor = { retention_days = 30
cpu = 2 flavor_id = "flavor.id"
ram = 4 replicas = 1
}
replicas = 3
storage = { storage = {
class = "class" performance_class = "premium-perf2-stackit"
size = 5 size = 10
} }
version = 14 encryption = {
kek_key_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
kek_key_ring_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
kek_key_version = 1
service_account = "service@account.email"
}
network = {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
access_scope = "PUBLIC"
}
version = 17
} }
# Only use the import statement, if you want to import an existing postgresflex instance # Only use the import statement, if you want to import an existing postgresflex instance
@ -35,6 +43,15 @@ import {
to = stackitprivatepreview_postgresflexalpha_instance.import-example to = stackitprivatepreview_postgresflexalpha_instance.import-example
id = "${var.project_id},${var.region},${var.postgres_instance_id}" id = "${var.project_id},${var.region},${var.postgres_instance_id}"
} }
import {
to = stackitprivatepreview_postgresflexalpha_instance.import-example
identity = {
project_id = var.project_id
region = var.region
instance_id = var.postgres_instance_id
}
}
``` ```
<!-- schema generated by tfplugindocs --> <!-- schema generated by tfplugindocs -->