1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. PostgresflexInstance
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
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:

    BackupSchedule 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 * * *'.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Storage PostgresflexInstanceStorage
    Version string
    Acls List<string>
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    Encryption PostgresflexInstanceEncryption
    Flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    FlavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    Name string
    Instance name.
    Network PostgresflexInstanceNetwork
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays 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.
    BackupSchedule 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 * * *'.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Storage PostgresflexInstanceStorageArgs
    Version string
    Acls []string
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    Encryption PostgresflexInstanceEncryptionArgs
    Flavor PostgresflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    FlavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    Name string
    Instance name.
    Network PostgresflexInstanceNetworkArgs
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays 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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    encryption object
    flavor object

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavor_id string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    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.
    backupSchedule 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 * * *'.
    projectId String
    STACKIT project ID to which the instance is associated.
    storage PostgresflexInstanceStorage
    version String
    acls List<String>
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    encryption PostgresflexInstanceEncryption
    flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId String
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    name String
    Instance name.
    network PostgresflexInstanceNetwork
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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.
    backupSchedule 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 * * *'.
    projectId string
    STACKIT project ID to which the instance is associated.
    storage PostgresflexInstanceStorage
    version string
    acls string[]
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    encryption PostgresflexInstanceEncryption
    flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    name string
    Instance name.
    network PostgresflexInstanceNetwork
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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 PostgresflexInstanceStorageArgs
    version str
    acls Sequence[str]
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    encryption PostgresflexInstanceEncryptionArgs
    flavor PostgresflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavor_id str
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    name str
    Instance name.
    network PostgresflexInstanceNetworkArgs
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    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.
    backupSchedule 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 * * *'.
    projectId 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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    encryption Property Map
    flavor Property Map

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId String
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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:

    ConnectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID of the PostgresFlex instance.
    ConnectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId 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.
    connectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID of the PostgresFlex instance.
    connectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    ID of the PostgresFlex instance.
    connection_info PostgresflexInstanceConnectionInfo
    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.
    connectionInfo Property Map
    The connection info for the PostgresFlex instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId 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) -> PostgresflexInstance
    func 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.
    The following state arguments are supported:
    Acls List<string>
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 * * *'.
    ConnectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    Encryption PostgresflexInstanceEncryption
    Flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    FlavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    Network PostgresflexInstanceNetwork
    The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
    ProjectId 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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays 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 PostgresflexInstanceStorage
    Version string
    Acls []string
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 * * *'.
    ConnectionInfo PostgresflexInstanceConnectionInfoArgs
    The connection info for the PostgresFlex instance.
    Encryption PostgresflexInstanceEncryptionArgs
    Flavor PostgresflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    FlavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    Network PostgresflexInstanceNetworkArgs
    The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
    ProjectId 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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays 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 PostgresflexInstanceStorageArgs
    Version string
    acls list(string)
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavor_id string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 * * *'.
    connectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    encryption PostgresflexInstanceEncryption
    flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId String
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    instanceId String
    ID of the PostgresFlex instance.
    name String
    Instance name.
    network PostgresflexInstanceNetwork
    The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
    projectId 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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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 PostgresflexInstanceStorage
    version String
    acls string[]
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 * * *'.
    connectionInfo PostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    encryption PostgresflexInstanceEncryption
    flavor PostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId string
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    instanceId string
    ID of the PostgresFlex instance.
    name string
    Instance name.
    network PostgresflexInstanceNetwork
    The network configuration of the instance. Will be required after February 2027. Set a value to prevent breaking changes.
    projectId 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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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 PostgresflexInstanceStorage
    version string
    acls Sequence[str]
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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 PostgresflexInstanceConnectionInfoArgs
    The connection info for the PostgresFlex instance.
    encryption PostgresflexInstanceEncryptionArgs
    flavor PostgresflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavor_id str
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    instance_id str
    ID of the PostgresFlex instance.
    name str
    Instance name.
    network PostgresflexInstanceNetworkArgs
    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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    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 PostgresflexInstanceStorageArgs
    version str
    acls List<String>
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 * * *'.
    connectionInfo Property Map
    The connection info for the PostgresFlex instance.
    encryption Property Map
    flavor Property Map

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    flavorId String
    The flavor ID of the PostgreSQL Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getPostgresflexFlavors
    instanceId 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.
    projectId 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

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays 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 PostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    Write PostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write object
    The DNS name and port in the instance overview.
    write PostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write PostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write PostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write Property Map
    The DNS name and port in the instance overview.

    PostgresflexInstanceConnectionInfoWrite, PostgresflexInstanceConnectionInfoWriteArgs

    Host string
    The host of the instance.
    Port int
    The port of the instance.
    Host string
    The host of the instance.
    Port int
    The port of the instance.
    host string
    The host of the instance.
    port number
    The port of the instance.
    host String
    The host of the instance.
    port Integer
    The port of the instance.
    host string
    The host of the instance.
    port number
    The port of the instance.
    host str
    The host of the instance.
    port int
    The port of the instance.
    host String
    The host of the instance.
    port Number
    The port of the instance.

    PostgresflexInstanceEncryption, PostgresflexInstanceEncryptionArgs

    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.
    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.
    kek_key_id string
    The ID of the Key within the STACKIT-KMS to use for the encryption.
    kek_key_version string
    Version of the key within the STACKIT-KMS to use for the encryption.
    kek_keyring_id string
    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.
    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.
    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.
    kek_key_id str
    The ID of the Key within the STACKIT-KMS to use for the encryption.
    kek_key_version str
    Version of the key within the STACKIT-KMS to use for the encryption.
    kek_keyring_id str
    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.
    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.

    PostgresflexInstanceFlavor, PostgresflexInstanceFlavorArgs

    Cpu int
    Ram int
    Description string
    Id string
    Terraform's internal resource ID. It is structured as "projectId,region,instanceId".
    NodeType string
    Cpu int
    Ram int
    Description string
    Id string
    Terraform's internal resource ID. It is structured as "projectId,region,instanceId".
    NodeType 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".
    nodeType String
    cpu number
    ram number
    description string
    id string
    Terraform's internal resource ID. It is structured as "projectId,region,instanceId".
    nodeType 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".
    nodeType String

    PostgresflexInstanceNetwork, PostgresflexInstanceNetworkArgs

    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.
    Acls List<string>
    The Access Control List (ACL) for the PostgresFlex instance.
    InstanceAddress string
    RouterAddress string
    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.
    Acls []string
    The Access Control List (ACL) for the PostgresFlex instance.
    InstanceAddress string
    RouterAddress 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
    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.
    acls List<String>
    The Access Control List (ACL) for the PostgresFlex instance.
    instanceAddress String
    routerAddress String
    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.
    acls string[]
    The Access Control List (ACL) for the PostgresFlex instance.
    instanceAddress string
    routerAddress 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
    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.
    acls List<String>
    The Access Control List (ACL) for the PostgresFlex instance.
    instanceAddress String
    routerAddress String

    PostgresflexInstanceStorage, PostgresflexInstanceStorageArgs

    Class string

    The storage class. You can list available storage classes using the STACKIT CLI: bash stackit postgresflex flavor describe FLAVOR_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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_ID

    • size (Number) \n\n\n\n

    Nested Schema for encryption

    Required:

    • 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 flavor

    Required:

    • cpu (Number)
    • ram (Number) Read-Only:
    • description (String)
    • id (String)
    • nodeType (String) \n\n\n\n

    Nested Schema for network

    Optional:

    • 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 connectionInfo

    Read-Only:

    • write (Attributes) The DNS name and port in the instance overview. \n\n\n\n

    Nested Schema for connection_info.write

    Read-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 stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial