provider "stackitprivatepreview" { default_region = "{{ .Region }}" service_account_key_path = "{{ .ServiceAccountFilePath }}" } resource "stackitprivatepreview_postgresflexalpha_instance" "{{ .TfName }}" { project_id = "{{ .ProjectId }}" name = "{{ .Name }}" backup_schedule = "{{ .BackupSchedule }}" retention_days = {{ .RetentionDays }} flavor_id = "{{ .FlavorId }}" replicas = {{ .Replicas }} storage = { performance_class = "{{ .PerformanceClass }}" size = {{ .Size }} } {{ if .UseEncryption }} encryption = { kek_key_id = {{ .KekKeyId }} kek_key_ring_id = {{ .KekKeyRingId }} kek_key_version = {{ .KekKeyVersion }} service_account = "{{ .KekServiceAccount }}" } {{ end }} network = { acl = ["{{ .AclString }}"] access_scope = "{{ .AccessScope }}" } version = {{ .Version }} }