published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
Postgres Flex instance resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_postgresflex_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
network = {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
}
backup_schedule = "0 0 * * *"
flavor_id = "4.8-replica"
storage = {
class = "premium-perf2-stackit"
size = 5
}
version = "17"
retention_days = 32
}
Create PostgresflexInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresflexInstance(name: string, args: PostgresflexInstanceArgs, opts?: CustomResourceOptions);@overload
def PostgresflexInstance(resource_name: str,
args: PostgresflexInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresflexInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
backup_schedule: Optional[str] = None,
version: Optional[str] = None,
storage: Optional[PostgresflexInstanceStorageArgs] = None,
network: Optional[PostgresflexInstanceNetworkArgs] = None,
name: Optional[str] = None,
acls: Optional[Sequence[str]] = None,
flavor_id: Optional[str] = None,
region: Optional[str] = None,
replicas: Optional[int] = None,
retention_days: Optional[int] = None,
flavor: Optional[PostgresflexInstanceFlavorArgs] = None,
encryption: Optional[PostgresflexInstanceEncryptionArgs] = None)func NewPostgresflexInstance(ctx *Context, name string, args PostgresflexInstanceArgs, opts ...ResourceOption) (*PostgresflexInstance, error)public PostgresflexInstance(string name, PostgresflexInstanceArgs args, CustomResourceOptions? opts = null)
public PostgresflexInstance(String name, PostgresflexInstanceArgs args)
public PostgresflexInstance(String name, PostgresflexInstanceArgs args, CustomResourceOptions options)
type: stackit:PostgresflexInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stackit_postgresflex_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PostgresflexInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PostgresflexInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PostgresflexInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresflexInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresflexInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var postgresflexInstanceResource = new Stackit.PostgresflexInstance("postgresflexInstanceResource", new()
{
ProjectId = "string",
BackupSchedule = "string",
Version = "string",
Storage = new Stackit.Inputs.PostgresflexInstanceStorageArgs
{
Class = "string",
Size = 0,
},
Network = new Stackit.Inputs.PostgresflexInstanceNetworkArgs
{
AccessScope = "string",
Acls = new[]
{
"string",
},
InstanceAddress = "string",
RouterAddress = "string",
},
Name = "string",
FlavorId = "string",
Region = "string",
RetentionDays = 0,
Encryption = new Stackit.Inputs.PostgresflexInstanceEncryptionArgs
{
KekKeyId = "string",
KekKeyVersion = "string",
KekKeyringId = "string",
ServiceAccount = "string",
},
});
example, err := stackit.NewPostgresflexInstance(ctx, "postgresflexInstanceResource", &stackit.PostgresflexInstanceArgs{
ProjectId: pulumi.String("string"),
BackupSchedule: pulumi.String("string"),
Version: pulumi.String("string"),
Storage: &stackit.PostgresflexInstanceStorageArgs{
Class: pulumi.String("string"),
Size: pulumi.Int(0),
},
Network: &stackit.PostgresflexInstanceNetworkArgs{
AccessScope: pulumi.String("string"),
Acls: pulumi.StringArray{
pulumi.String("string"),
},
InstanceAddress: pulumi.String("string"),
RouterAddress: pulumi.String("string"),
},
Name: pulumi.String("string"),
FlavorId: pulumi.String("string"),
Region: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
Encryption: &stackit.PostgresflexInstanceEncryptionArgs{
KekKeyId: pulumi.String("string"),
KekKeyVersion: pulumi.String("string"),
KekKeyringId: pulumi.String("string"),
ServiceAccount: pulumi.String("string"),
},
})
resource "stackit_postgresflex_instance" "postgresflexInstanceResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
backup_schedule = "string"
version = "string"
storage = {
class = "string"
size = 0
}
network = {
access_scope = "string"
acls = ["string"]
instance_address = "string"
router_address = "string"
}
name = "string"
flavor_id = "string"
region = "string"
retention_days = 0
encryption = {
kek_key_id = "string"
kek_key_version = "string"
kek_keyring_id = "string"
service_account = "string"
}
}
var postgresflexInstanceResource = new PostgresflexInstance("postgresflexInstanceResource", PostgresflexInstanceArgs.builder()
.projectId("string")
.backupSchedule("string")
.version("string")
.storage(PostgresflexInstanceStorageArgs.builder()
.class_("string")
.size(0)
.build())
.network(PostgresflexInstanceNetworkArgs.builder()
.accessScope("string")
.acls("string")
.instanceAddress("string")
.routerAddress("string")
.build())
.name("string")
.flavorId("string")
.region("string")
.retentionDays(0)
.encryption(PostgresflexInstanceEncryptionArgs.builder()
.kekKeyId("string")
.kekKeyVersion("string")
.kekKeyringId("string")
.serviceAccount("string")
.build())
.build());
postgresflex_instance_resource = stackit.PostgresflexInstance("postgresflexInstanceResource",
project_id="string",
backup_schedule="string",
version="string",
storage={
"class_": "string",
"size": 0,
},
network={
"access_scope": "string",
"acls": ["string"],
"instance_address": "string",
"router_address": "string",
},
name="string",
flavor_id="string",
region="string",
retention_days=0,
encryption={
"kek_key_id": "string",
"kek_key_version": "string",
"kek_keyring_id": "string",
"service_account": "string",
})
const postgresflexInstanceResource = new stackit.PostgresflexInstance("postgresflexInstanceResource", {
projectId: "string",
backupSchedule: "string",
version: "string",
storage: {
"class": "string",
size: 0,
},
network: {
accessScope: "string",
acls: ["string"],
instanceAddress: "string",
routerAddress: "string",
},
name: "string",
flavorId: "string",
region: "string",
retentionDays: 0,
encryption: {
kekKeyId: "string",
kekKeyVersion: "string",
kekKeyringId: "string",
serviceAccount: "string",
},
});
type: stackit:PostgresflexInstance
properties:
backupSchedule: string
encryption:
kekKeyId: string
kekKeyVersion: string
kekKeyringId: string
serviceAccount: string
flavorId: string
name: string
network:
accessScope: string
acls:
- string
instanceAddress: string
routerAddress: string
projectId: string
region: string
retentionDays: 0
storage:
class: string
size: 0
version: string
PostgresflexInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PostgresflexInstance resource accepts the following input properties:
- Backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Storage
Postgresflex
Instance Storage - Version string
- Acls List<string>
- The Access Control List (ACL) for the PostgresFlex instance.
- Encryption
Postgresflex
Instance Encryption - Flavor
Postgresflex
Instance Flavor - Flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - Name string
- Instance name.
- Network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - Retention
Days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- Backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Storage
Postgresflex
Instance Storage Args - Version string
- Acls []string
- The Access Control List (ACL) for the PostgresFlex instance.
- Encryption
Postgresflex
Instance Encryption Args - Flavor
Postgresflex
Instance Flavor Args - Flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - Name string
- Instance name.
- Network
Postgresflex
Instance Network Args - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - Retention
Days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- backup_
schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- project_
id string - STACKIT project ID to which the instance is associated.
- storage object
- version string
- acls list(string)
- The Access Control List (ACL) for the PostgresFlex instance.
- encryption object
- flavor object
- flavor_
id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - name string
- Instance name.
- network object
- The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention_
days number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- backup
Schedule String - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- project
Id String - STACKIT project ID to which the instance is associated.
- storage
Postgresflex
Instance Storage - version String
- acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption - flavor
Postgresflex
Instance Flavor - flavor
Id String - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - name String
- Instance name.
- network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Integer
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days Integer - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- project
Id string - STACKIT project ID to which the instance is associated.
- storage
Postgresflex
Instance Storage - version string
- acls string[]
- The Access Control List (ACL) for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption - flavor
Postgresflex
Instance Flavor - flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - name string
- Instance name.
- network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- backup_
schedule str - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- project_
id str - STACKIT project ID to which the instance is associated.
- storage
Postgresflex
Instance Storage Args - version str
- acls Sequence[str]
- The Access Control List (ACL) for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption Args - flavor
Postgresflex
Instance Flavor Args - flavor_
id str - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - name str
- Instance name.
- network
Postgresflex
Instance Network Args - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- region str
- The resource region. If not defined, the provider region is used.
- replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention_
days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- backup
Schedule String - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- project
Id String - STACKIT project ID to which the instance is associated.
- storage Property Map
- version String
- acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- encryption Property Map
- flavor Property Map
- flavor
Id String - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - name String
- Instance name.
- network Property Map
- The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days Number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresflexInstance resource produces the following output properties:
- Connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the PostgresFlex instance.
- Connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the PostgresFlex instance.
- connection_
info object - The connection info for the PostgresFlex instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
id string - ID of the PostgresFlex instance.
- connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the PostgresFlex instance.
- connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - ID of the PostgresFlex instance.
- connection_
info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - ID of the PostgresFlex instance.
- connection
Info Property Map - The connection info for the PostgresFlex instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the PostgresFlex instance.
Look up Existing PostgresflexInstance Resource
Get an existing PostgresflexInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PostgresflexInstanceState, opts?: CustomResourceOptions): PostgresflexInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acls: Optional[Sequence[str]] = None,
backup_schedule: Optional[str] = None,
connection_info: Optional[PostgresflexInstanceConnectionInfoArgs] = None,
encryption: Optional[PostgresflexInstanceEncryptionArgs] = None,
flavor: Optional[PostgresflexInstanceFlavorArgs] = None,
flavor_id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
network: Optional[PostgresflexInstanceNetworkArgs] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
replicas: Optional[int] = None,
retention_days: Optional[int] = None,
storage: Optional[PostgresflexInstanceStorageArgs] = None,
version: Optional[str] = None) -> PostgresflexInstancefunc GetPostgresflexInstance(ctx *Context, name string, id IDInput, state *PostgresflexInstanceState, opts ...ResourceOption) (*PostgresflexInstance, error)public static PostgresflexInstance Get(string name, Input<string> id, PostgresflexInstanceState? state, CustomResourceOptions? opts = null)public static PostgresflexInstance get(String name, Output<String> id, PostgresflexInstanceState state, CustomResourceOptions options)resources: _: type: stackit:PostgresflexInstance get: id: ${id}import {
to = stackit_postgresflex_instance.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acls List<string>
- The Access Control List (ACL) for the PostgresFlex instance.
- Backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- Connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- Encryption
Postgresflex
Instance Encryption - Flavor
Postgresflex
Instance Flavor - Flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - Instance
Id string - ID of the PostgresFlex instance.
- Name string
- Instance name.
- Network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - Retention
Days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- Storage
Postgresflex
Instance Storage - Version string
- Acls []string
- The Access Control List (ACL) for the PostgresFlex instance.
- Backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- Connection
Info PostgresflexInstance Connection Info Args - The connection info for the PostgresFlex instance.
- Encryption
Postgresflex
Instance Encryption Args - Flavor
Postgresflex
Instance Flavor Args - Flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - Instance
Id string - ID of the PostgresFlex instance.
- Name string
- Instance name.
- Network
Postgresflex
Instance Network Args - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - Retention
Days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- Storage
Postgresflex
Instance Storage Args - Version string
- acls list(string)
- The Access Control List (ACL) for the PostgresFlex instance.
- backup_
schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- connection_
info object - The connection info for the PostgresFlex instance.
- encryption object
- flavor object
- flavor_
id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - instance_
id string - ID of the PostgresFlex instance.
- name string
- Instance name.
- network object
- The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- project_
id string - STACKIT project ID to which the instance is associated.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention_
days number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- storage object
- version string
- acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- backup
Schedule String - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption - flavor
Postgresflex
Instance Flavor - flavor
Id String - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - instance
Id String - ID of the PostgresFlex instance.
- name String
- Instance name.
- network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Integer
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days Integer - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- storage
Postgresflex
Instance Storage - version String
- acls string[]
- The Access Control List (ACL) for the PostgresFlex instance.
- backup
Schedule string - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- connection
Info PostgresflexInstance Connection Info - The connection info for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption - flavor
Postgresflex
Instance Flavor - flavor
Id string - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - instance
Id string - ID of the PostgresFlex instance.
- name string
- Instance name.
- network
Postgresflex
Instance Network - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- project
Id string - STACKIT project ID to which the instance is associated.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- storage
Postgresflex
Instance Storage - version string
- acls Sequence[str]
- The Access Control List (ACL) for the PostgresFlex instance.
- backup_
schedule str - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- connection_
info PostgresflexInstance Connection Info Args - The connection info for the PostgresFlex instance.
- encryption
Postgresflex
Instance Encryption Args - flavor
Postgresflex
Instance Flavor Args - flavor_
id str - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - instance_
id str - ID of the PostgresFlex instance.
- name str
- Instance name.
- network
Postgresflex
Instance Network Args - The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- project_
id str - STACKIT project ID to which the instance is associated.
- region str
- The resource region. If not defined, the provider region is used.
- replicas int
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention_
days int - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- storage
Postgresflex
Instance Storage Args - version str
- acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- backup
Schedule String - The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
- connection
Info Property Map - The connection info for the PostgresFlex instance.
- encryption Property Map
- flavor Property Map
- flavor
Id String - The flavor ID of the PostgreSQL Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getPostgresflexFlavors - instance
Id String - ID of the PostgresFlex instance.
- name String
- Instance name.
- network Property Map
- The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
- project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Number
- How many replicas the instance should have. Valid values are 1 for single mode or 3 for replication. Can only be set together with
flavor - retention
Days Number - How long backups are retained. The value can only be between 32 and 90 days. Will be required after February 2027. Set a value to prevent breaking changes.
- storage Property Map
- version String
Supporting Types
PostgresflexInstanceConnectionInfo, PostgresflexInstanceConnectionInfoArgs
- Write
Postgresflex
Instance Connection Info Write - The DNS name and port in the instance overview.
- Write
Postgresflex
Instance Connection Info Write - The DNS name and port in the instance overview.
- write
Postgresflex
Instance Connection Info Write - The DNS name and port in the instance overview.
- write
Postgresflex
Instance Connection Info Write - The DNS name and port in the instance overview.
- write
Postgresflex
Instance Connection Info Write - The DNS name and port in the instance overview.
- write Property Map
- The DNS name and port in the instance overview.
PostgresflexInstanceConnectionInfoWrite, PostgresflexInstanceConnectionInfoWriteArgs
PostgresflexInstanceEncryption, PostgresflexInstanceEncryptionArgs
- Kek
Key stringId - The ID of the Key within the STACKIT-KMS to use for the encryption.
- Kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- Kek
Keyring stringId - The ID of the keyring where the key is located within the STACKTI-KMS.
- Service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- Kek
Key stringId - The ID of the Key within the STACKIT-KMS to use for the encryption.
- Kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- Kek
Keyring stringId - The ID of the keyring where the key is located within the STACKTI-KMS.
- Service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek_
key_ stringid - The ID of the Key within the STACKIT-KMS to use for the encryption.
- kek_
key_ stringversion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek_
keyring_ stringid - The ID of the keyring where the key is located within the STACKTI-KMS.
- service_
account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key StringId - The ID of the Key within the STACKIT-KMS to use for the encryption.
- kek
Key StringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring StringId - The ID of the keyring where the key is located within the STACKTI-KMS.
- service
Account String - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key stringId - The ID of the Key within the STACKIT-KMS to use for the encryption.
- kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring stringId - The ID of the keyring where the key is located within the STACKTI-KMS.
- service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek_
key_ strid - The ID of the Key within the STACKIT-KMS to use for the encryption.
- kek_
key_ strversion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek_
keyring_ strid - The ID of the keyring where the key is located within the STACKTI-KMS.
- service_
account str - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key StringId - The ID of the Key within the STACKIT-KMS to use for the encryption.
- kek
Key StringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring StringId - The ID of the keyring where the key is located within the STACKTI-KMS.
- service
Account String - Service-Account linked to the Key within the STACKIT-KMS.
PostgresflexInstanceFlavor, PostgresflexInstanceFlavorArgs
- Cpu int
- Ram int
- Description string
- Id string
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - Node
Type string
- Cpu int
- Ram int
- Description string
- Id string
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - Node
Type string
- cpu number
- ram number
- description string
- id string
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - node_
type string
- cpu Integer
- ram Integer
- description String
- id String
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - node
Type String
- cpu number
- ram number
- description string
- id string
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - node
Type string
- cpu int
- ram int
- description str
- id str
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - node_
type str
- cpu Number
- ram Number
- description String
- id String
- Terraform's internal resource ID. It is structured as "
projectId,region,instanceId". - node
Type String
PostgresflexInstanceNetwork, PostgresflexInstanceNetworkArgs
- Access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - Acls List<string>
- The Access Control List (ACL) for the PostgresFlex instance.
- Instance
Address string - Router
Address string
- Access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - Acls []string
- The Access Control List (ACL) for the PostgresFlex instance.
- Instance
Address string - Router
Address string
- access_
scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls list(string)
- The Access Control List (ACL) for the PostgresFlex instance.
- instance_
address string - router_
address string
- access
Scope String - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- instance
Address String - router
Address String
- access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls string[]
- The Access Control List (ACL) for the PostgresFlex instance.
- instance
Address string - router
Address string
- access_
scope str - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls Sequence[str]
- The Access Control List (ACL) for the PostgresFlex instance.
- instance_
address str - router_
address str
- access
Scope String - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls List<String>
- The Access Control List (ACL) for the PostgresFlex instance.
- instance
Address String - router
Address String
PostgresflexInstanceStorage, PostgresflexInstanceStorageArgs
- Class string
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- Size int
- Class string
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- Size int
- class string
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- size number
- class_ String
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- size Integer
- class string
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- size number
- class_ str
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- size int
- class String
The storage class. You can list available storage classes using the STACKIT CLI:
bash stackit postgresflex flavor describe FLAVOR_IDsize(Number) \n\n\n\n
Nested Schema for
encryptionRequired:
kekKeyId(String) The ID of the Key within the STACKIT-KMS to use for the encryption.kekKeyVersion(String) Version of the key within the STACKIT-KMS to use for the encryption.kekKeyringId(String) The ID of the keyring where the key is located within the STACKTI-KMS.serviceAccount(String) Service-Account linked to the Key within the STACKIT-KMS. \n\n\n\n
Nested Schema for
flavorRequired:
cpu(Number)ram(Number) Read-Only:description(String)id(String)nodeType(String) \n\n\n\n
Nested Schema for
networkOptional:
accessScope(String) The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:PUBLIC,SNA.acl(List of String) The Access Control List (ACL) for the PostgresFlex instance. Read-Only:instanceAddress(String)routerAddress(String) \n\n\n\n
Nested Schema for
connectionInfoRead-Only:
write(Attributes) The DNS name and port in the instance overview. \n\n\n\n
Nested Schema for
connection_info.writeRead-Only:
host(String) The host of the instance.port(Number) The port of the instance.
- size Number
Import
In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:
# Only use the import statement, if you want to import an existing postgresflex instance
import {
to = stackit_postgresflex_instance.import-example
id = "${var.project_id},${var.region},${var.postgres_instance_id}"
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Monday, Aug 17, 2026 by stackitcloud