elegant-plumber-85706
02/16/2022, 3:23 PMv20200214preview
like this:
export const myDB = new azureNative.dbforpostgresql.v20200214preview.Server(
"myDB",
{
administratorLogin: config.POSTGRES_USERNAME,
administratorLoginPassword: config.POSTGRES_PASSWORD,
createMode: "Default",
storageProfile: {
backupRetentionDays: 7,
storageMB: 32768,
},
resourceGroupName: config.RESOURCE_GROUP_NAME,
serverName: config.POSTGRES_SERVER_NAME,
sku: {
name: config.POSTGRES_INSTANCE_TYPE,
tier: config.POSTGRES_INSTANCE_TIER,
},
version: "13",
},
{
dependsOn: resourceGroup,
}
)
But when I try to add new database to this server I can't find Database
resource in this preview class:
new azureNative.dbforpostgresql.v20200214preview.Database <------ This resource not exists in Pulumi
Can you tell me how I can add more database to the above postgres server?
In the azure document they told that it's allowed and possible to use single postgres server with multiple database:
Within an Azure Database for PostgreSQL server, you can create one or multiple databases. You can opt to create a single database per server to utilize all the resources, or create multiple databases to share the resources.Ref: https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-servers