qovery.Database
Explore with Pulumi AI
# qovery.Database (Resource)
Provides a Qovery database resource. This can be used to create and manage Qovery databases.
Example
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";
const myContainerDatabase = new qovery.Database("myContainerDatabase", {
    environmentId: qovery_environment.my_environment.id,
    type: "POSTGRESQL",
    version: "10",
    mode: "CONTAINER",
    accessibility: "PRIVATE",
    cpu: 250,
    memory: 256,
    storage: 10,
}, {
    dependsOn: [qovery_environment.my_environment],
});
const myManagedDatabase = new qovery.Database("myManagedDatabase", {
    environmentId: qovery_environment.my_environment.id,
    type: "POSTGRESQL",
    version: "10",
    mode: "MANAGED",
    instanceType: "db.t3.micro",
    accessibility: "PRIVATE",
    storage: 10,
}, {
    dependsOn: [qovery_environment.my_environment],
});
import pulumi
import ediri_qovery as qovery
my_container_database = qovery.Database("myContainerDatabase",
    environment_id=qovery_environment["my_environment"]["id"],
    type="POSTGRESQL",
    version="10",
    mode="CONTAINER",
    accessibility="PRIVATE",
    cpu=250,
    memory=256,
    storage=10,
    opts = pulumi.ResourceOptions(depends_on=[qovery_environment["my_environment"]]))
my_managed_database = qovery.Database("myManagedDatabase",
    environment_id=qovery_environment["my_environment"]["id"],
    type="POSTGRESQL",
    version="10",
    mode="MANAGED",
    instance_type="db.t3.micro",
    accessibility="PRIVATE",
    storage=10,
    opts = pulumi.ResourceOptions(depends_on=[qovery_environment["my_environment"]]))
package main
import (
	"github.com/dirien/pulumi-qovery/sdk/go/qovery"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := qovery.NewDatabase(ctx, "myContainerDatabase", &qovery.DatabaseArgs{
			EnvironmentId: pulumi.Any(qovery_environment.My_environment.Id),
			Type:          pulumi.String("POSTGRESQL"),
			Version:       pulumi.String("10"),
			Mode:          pulumi.String("CONTAINER"),
			Accessibility: pulumi.String("PRIVATE"),
			Cpu:           pulumi.Int(250),
			Memory:        pulumi.Int(256),
			Storage:       pulumi.Int(10),
		}, pulumi.DependsOn([]pulumi.Resource{
			qovery_environment.My_environment,
		}))
		if err != nil {
			return err
		}
		_, err = qovery.NewDatabase(ctx, "myManagedDatabase", &qovery.DatabaseArgs{
			EnvironmentId: pulumi.Any(qovery_environment.My_environment.Id),
			Type:          pulumi.String("POSTGRESQL"),
			Version:       pulumi.String("10"),
			Mode:          pulumi.String("MANAGED"),
			InstanceType:  pulumi.String("db.t3.micro"),
			Accessibility: pulumi.String("PRIVATE"),
			Storage:       pulumi.Int(10),
		}, pulumi.DependsOn([]pulumi.Resource{
			qovery_environment.My_environment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;
return await Deployment.RunAsync(() => 
{
    var myContainerDatabase = new Qovery.Database("myContainerDatabase", new()
    {
        EnvironmentId = qovery_environment.My_environment.Id,
        Type = "POSTGRESQL",
        Version = "10",
        Mode = "CONTAINER",
        Accessibility = "PRIVATE",
        Cpu = 250,
        Memory = 256,
        Storage = 10,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            qovery_environment.My_environment,
        },
    });
    var myManagedDatabase = new Qovery.Database("myManagedDatabase", new()
    {
        EnvironmentId = qovery_environment.My_environment.Id,
        Type = "POSTGRESQL",
        Version = "10",
        Mode = "MANAGED",
        InstanceType = "db.t3.micro",
        Accessibility = "PRIVATE",
        Storage = 10,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            qovery_environment.My_environment,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.Database;
import com.pulumi.qovery.DatabaseArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var myContainerDatabase = new Database("myContainerDatabase", DatabaseArgs.builder()
            .environmentId(qovery_environment.my_environment().id())
            .type("POSTGRESQL")
            .version("10")
            .mode("CONTAINER")
            .accessibility("PRIVATE")
            .cpu(250)
            .memory(256)
            .storage(10)
            .build(), CustomResourceOptions.builder()
                .dependsOn(qovery_environment.my_environment())
                .build());
        var myManagedDatabase = new Database("myManagedDatabase", DatabaseArgs.builder()
            .environmentId(qovery_environment.my_environment().id())
            .type("POSTGRESQL")
            .version("10")
            .mode("MANAGED")
            .instanceType("db.t3.micro")
            .accessibility("PRIVATE")
            .storage(10)
            .build(), CustomResourceOptions.builder()
                .dependsOn(qovery_environment.my_environment())
                .build());
    }
}
resources:
  myContainerDatabase:
    type: qovery:Database
    properties:
      # Required
      environmentId: ${qovery_environment.my_environment.id}
      type: POSTGRESQL
      version: '10'
      mode: CONTAINER
      # Optional
      accessibility: PRIVATE
      cpu: 250
      memory: 256
      storage: 10
    options:
      dependson:
        - ${qovery_environment.my_environment}
  myManagedDatabase:
    type: qovery:Database
    properties:
      # Required
      environmentId: ${qovery_environment.my_environment.id}
      type: POSTGRESQL
      version: '10'
      mode: MANAGED
      # Instance type to be set for managed databases
      instanceType: db.t3.micro
      # Optional
      accessibility: PRIVATE
      storage: 10
    options:
      dependson:
        - ${qovery_environment.my_environment}
Create Database Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);@overload
def Database(resource_name: str,
             args: DatabaseArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Database(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             environment_id: Optional[str] = None,
             version: Optional[str] = None,
             type: Optional[str] = None,
             mode: Optional[str] = None,
             deployment_stage_id: Optional[str] = None,
             icon_uri: Optional[str] = None,
             instance_type: Optional[str] = None,
             labels_group_ids: Optional[Sequence[str]] = None,
             memory: Optional[int] = None,
             accessibility: Optional[str] = None,
             name: Optional[str] = None,
             storage: Optional[int] = None,
             cpu: Optional[int] = None,
             annotations_group_ids: Optional[Sequence[str]] = None)func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
public Database(String name, DatabaseArgs args)
public Database(String name, DatabaseArgs args, CustomResourceOptions options)
type: qovery:Database
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseArgs
- 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 DatabaseArgs
- 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 DatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseArgs
- 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 databaseResource = new Qovery.Database("databaseResource", new()
{
    EnvironmentId = "string",
    Version = "string",
    Type = "string",
    Mode = "string",
    DeploymentStageId = "string",
    IconUri = "string",
    InstanceType = "string",
    LabelsGroupIds = new[]
    {
        "string",
    },
    Memory = 0,
    Accessibility = "string",
    Name = "string",
    Storage = 0,
    Cpu = 0,
    AnnotationsGroupIds = new[]
    {
        "string",
    },
});
example, err := qovery.NewDatabase(ctx, "databaseResource", &qovery.DatabaseArgs{
	EnvironmentId:     pulumi.String("string"),
	Version:           pulumi.String("string"),
	Type:              pulumi.String("string"),
	Mode:              pulumi.String("string"),
	DeploymentStageId: pulumi.String("string"),
	IconUri:           pulumi.String("string"),
	InstanceType:      pulumi.String("string"),
	LabelsGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Memory:        pulumi.Int(0),
	Accessibility: pulumi.String("string"),
	Name:          pulumi.String("string"),
	Storage:       pulumi.Int(0),
	Cpu:           pulumi.Int(0),
	AnnotationsGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var databaseResource = new Database("databaseResource", DatabaseArgs.builder()
    .environmentId("string")
    .version("string")
    .type("string")
    .mode("string")
    .deploymentStageId("string")
    .iconUri("string")
    .instanceType("string")
    .labelsGroupIds("string")
    .memory(0)
    .accessibility("string")
    .name("string")
    .storage(0)
    .cpu(0)
    .annotationsGroupIds("string")
    .build());
database_resource = qovery.Database("databaseResource",
    environment_id="string",
    version="string",
    type="string",
    mode="string",
    deployment_stage_id="string",
    icon_uri="string",
    instance_type="string",
    labels_group_ids=["string"],
    memory=0,
    accessibility="string",
    name="string",
    storage=0,
    cpu=0,
    annotations_group_ids=["string"])
const databaseResource = new qovery.Database("databaseResource", {
    environmentId: "string",
    version: "string",
    type: "string",
    mode: "string",
    deploymentStageId: "string",
    iconUri: "string",
    instanceType: "string",
    labelsGroupIds: ["string"],
    memory: 0,
    accessibility: "string",
    name: "string",
    storage: 0,
    cpu: 0,
    annotationsGroupIds: ["string"],
});
type: qovery:Database
properties:
    accessibility: string
    annotationsGroupIds:
        - string
    cpu: 0
    deploymentStageId: string
    environmentId: string
    iconUri: string
    instanceType: string
    labelsGroupIds:
        - string
    memory: 0
    mode: string
    name: string
    storage: 0
    type: string
    version: string
Database 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 Database resource accepts the following input properties:
- EnvironmentId string
- Id of the environment.
- Mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- Type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- Version string
- Version of the database
- Accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- AnnotationsGroup List<string>Ids 
- List of annotations group ids
- Cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- DeploymentStage stringId 
- Id of the deployment stage.
- IconUri string
- Icon URI representing the database.
- InstanceType string
- Instance type of the database.
- LabelsGroup List<string>Ids 
- List of labels group ids
- Memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- Name string
- Name of the database.
- Storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- EnvironmentId string
- Id of the environment.
- Mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- Type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- Version string
- Version of the database
- Accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- AnnotationsGroup []stringIds 
- List of annotations group ids
- Cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- DeploymentStage stringId 
- Id of the deployment stage.
- IconUri string
- Icon URI representing the database.
- InstanceType string
- Instance type of the database.
- LabelsGroup []stringIds 
- List of labels group ids
- Memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- Name string
- Name of the database.
- Storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- environmentId String
- Id of the environment.
- mode String
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- type String
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version String
- Version of the database
- accessibility String
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup List<String>Ids 
- List of annotations group ids
- cpu Integer
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage StringId 
- Id of the deployment stage.
- iconUri String
- Icon URI representing the database.
- instanceType String
- Instance type of the database.
- labelsGroup List<String>Ids 
- List of labels group ids
- memory Integer
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- name String
- Name of the database.
- storage Integer
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- environmentId string
- Id of the environment.
- mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version string
- Version of the database
- accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup string[]Ids 
- List of annotations group ids
- cpu number
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage stringId 
- Id of the deployment stage.
- iconUri string
- Icon URI representing the database.
- instanceType string
- Instance type of the database.
- labelsGroup string[]Ids 
- List of labels group ids
- memory number
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- name string
- Name of the database.
- storage number
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- environment_id str
- Id of the environment.
- mode str
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- type str
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version str
- Version of the database
- accessibility str
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotations_group_ Sequence[str]ids 
- List of annotations group ids
- cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deployment_stage_ strid 
- Id of the deployment stage.
- icon_uri str
- Icon URI representing the database.
- instance_type str
- Instance type of the database.
- labels_group_ Sequence[str]ids 
- List of labels group ids
- memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- name str
- Name of the database.
- storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- environmentId String
- Id of the environment.
- mode String
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- type String
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version String
- Version of the database
- accessibility String
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup List<String>Ids 
- List of annotations group ids
- cpu Number
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage StringId 
- Id of the deployment stage.
- iconUri String
- Icon URI representing the database.
- instanceType String
- Instance type of the database.
- labelsGroup List<String>Ids 
- List of labels group ids
- memory Number
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- name String
- Name of the database.
- storage Number
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
Outputs
All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:
- ExternalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalHost string
- The database internal host (Recommended for your application)
- Login string
- The login to connect to your database
- Password string
- The password to connect to your database
- Port int
- The port to connect to your database
- ExternalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalHost string
- The database internal host (Recommended for your application)
- Login string
- The login to connect to your database
- Password string
- The password to connect to your database
- Port int
- The port to connect to your database
- externalHost String
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- id String
- The provider-assigned unique ID for this managed resource.
- internalHost String
- The database internal host (Recommended for your application)
- login String
- The login to connect to your database
- password String
- The password to connect to your database
- port Integer
- The port to connect to your database
- externalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- id string
- The provider-assigned unique ID for this managed resource.
- internalHost string
- The database internal host (Recommended for your application)
- login string
- The login to connect to your database
- password string
- The password to connect to your database
- port number
- The port to connect to your database
- external_host str
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- id str
- The provider-assigned unique ID for this managed resource.
- internal_host str
- The database internal host (Recommended for your application)
- login str
- The login to connect to your database
- password str
- The password to connect to your database
- port int
- The port to connect to your database
- externalHost String
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- id String
- The provider-assigned unique ID for this managed resource.
- internalHost String
- The database internal host (Recommended for your application)
- login String
- The login to connect to your database
- password String
- The password to connect to your database
- port Number
- The port to connect to your database
Look up Existing Database Resource
Get an existing Database 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?: DatabaseState, opts?: CustomResourceOptions): Database@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accessibility: Optional[str] = None,
        annotations_group_ids: Optional[Sequence[str]] = None,
        cpu: Optional[int] = None,
        deployment_stage_id: Optional[str] = None,
        environment_id: Optional[str] = None,
        external_host: Optional[str] = None,
        icon_uri: Optional[str] = None,
        instance_type: Optional[str] = None,
        internal_host: Optional[str] = None,
        labels_group_ids: Optional[Sequence[str]] = None,
        login: Optional[str] = None,
        memory: Optional[int] = None,
        mode: Optional[str] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        port: Optional[int] = None,
        storage: Optional[int] = None,
        type: Optional[str] = None,
        version: Optional[str] = None) -> Databasefunc GetDatabase(ctx *Context, name string, id IDInput, state *DatabaseState, opts ...ResourceOption) (*Database, error)public static Database Get(string name, Input<string> id, DatabaseState? state, CustomResourceOptions? opts = null)public static Database get(String name, Output<String> id, DatabaseState state, CustomResourceOptions options)Resource lookup is not supported in YAML- 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.
- Accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- AnnotationsGroup List<string>Ids 
- List of annotations group ids
- Cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- DeploymentStage stringId 
- Id of the deployment stage.
- EnvironmentId string
- Id of the environment.
- ExternalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- IconUri string
- Icon URI representing the database.
- InstanceType string
- Instance type of the database.
- InternalHost string
- The database internal host (Recommended for your application)
- LabelsGroup List<string>Ids 
- List of labels group ids
- Login string
- The login to connect to your database
- Memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- Mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- Name string
- Name of the database.
- Password string
- The password to connect to your database
- Port int
- The port to connect to your database
- Storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- Type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- Version string
- Version of the database
- Accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- AnnotationsGroup []stringIds 
- List of annotations group ids
- Cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- DeploymentStage stringId 
- Id of the deployment stage.
- EnvironmentId string
- Id of the environment.
- ExternalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- IconUri string
- Icon URI representing the database.
- InstanceType string
- Instance type of the database.
- InternalHost string
- The database internal host (Recommended for your application)
- LabelsGroup []stringIds 
- List of labels group ids
- Login string
- The login to connect to your database
- Memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- Mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- Name string
- Name of the database.
- Password string
- The password to connect to your database
- Port int
- The port to connect to your database
- Storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- Type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- Version string
- Version of the database
- accessibility String
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup List<String>Ids 
- List of annotations group ids
- cpu Integer
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage StringId 
- Id of the deployment stage.
- environmentId String
- Id of the environment.
- externalHost String
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- iconUri String
- Icon URI representing the database.
- instanceType String
- Instance type of the database.
- internalHost String
- The database internal host (Recommended for your application)
- labelsGroup List<String>Ids 
- List of labels group ids
- login String
- The login to connect to your database
- memory Integer
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- mode String
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- name String
- Name of the database.
- password String
- The password to connect to your database
- port Integer
- The port to connect to your database
- storage Integer
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- type String
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version String
- Version of the database
- accessibility string
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup string[]Ids 
- List of annotations group ids
- cpu number
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage stringId 
- Id of the deployment stage.
- environmentId string
- Id of the environment.
- externalHost string
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- iconUri string
- Icon URI representing the database.
- instanceType string
- Instance type of the database.
- internalHost string
- The database internal host (Recommended for your application)
- labelsGroup string[]Ids 
- List of labels group ids
- login string
- The login to connect to your database
- memory number
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- mode string
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- name string
- Name of the database.
- password string
- The password to connect to your database
- port number
- The port to connect to your database
- storage number
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- type string
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version string
- Version of the database
- accessibility str
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotations_group_ Sequence[str]ids 
- List of annotations group ids
- cpu int
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deployment_stage_ strid 
- Id of the deployment stage.
- environment_id str
- Id of the environment.
- external_host str
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- icon_uri str
- Icon URI representing the database.
- instance_type str
- Instance type of the database.
- internal_host str
- The database internal host (Recommended for your application)
- labels_group_ Sequence[str]ids 
- List of labels group ids
- login str
- The login to connect to your database
- memory int
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- mode str
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- name str
- Name of the database.
- password str
- The password to connect to your database
- port int
- The port to connect to your database
- storage int
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- type str
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version str
- Version of the database
- accessibility String
- Accessibility of the database. - Can be: PRIVATE,PUBLIC. - Default:PUBLIC.
- annotationsGroup List<String>Ids 
- List of annotations group ids
- cpu Number
- CPU of the database in millicores (m) [1000m = 1 CPU]. - Must be: >= 250. - Default:250.
- deploymentStage StringId 
- Id of the deployment stage.
- environmentId String
- Id of the environment.
- externalHost String
- The database external FQDN host [NOTE: only if your container is using a publicly accessible port].
- iconUri String
- Icon URI representing the database.
- instanceType String
- Instance type of the database.
- internalHost String
- The database internal host (Recommended for your application)
- labelsGroup List<String>Ids 
- List of labels group ids
- login String
- The login to connect to your database
- memory Number
- RAM of the database in MB [1024MB = 1GB]. - Must be: >= 100. - Default:256.
- mode String
- Mode of the database [NOTE: can't be updated after creation]. - Can be: CONTAINER,MANAGED.
- name String
- Name of the database.
- password String
- The password to connect to your database
- port Number
- The port to connect to your database
- storage Number
- Storage of the database in GB [1024MB = 1GB] [NOTE: can't be updated after creation]. - Must be: >= 10. - Default:10.
- type String
- Type of the database [NOTE: can't be updated after creation]. - Can be: MONGODB,MYSQL,POSTGRESQL,REDIS.
- version String
- Version of the database
Import
$ pulumi import qovery:index/database:Database my_database "<database_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the qoveryTerraform Provider.