sparse-intern-71089
11/22/2023, 10:19 AMwet-noon-14291
11/22/2023, 11:02 AMCluster
(postgres for cosmos) and attached a firewall rule to the cluster?wet-noon-14291
11/22/2023, 11:43 AMimport {
Cluster,
Role,
FirewallRule,
} from "@pulumi/azure-native/dbforpostgresql";
const server = new Cluster(
"dbserver",
{
administratorLoginPassword: password.result,
location: "westeurope",
coordinatorServerEdition: "GeneralPurpose",
coordinatorStorageQuotaInMb: 524288,
citusVersion: "11.1",
coordinatorVCores: 2,
nodeVCores: 4,
postgresqlVersion: "14",
nodeCount: 0,
resourceGroupName: environmentConfig.azureConnections[0].resourceGroupName,
},
{ provider: azureProvider }
);
const firewallRules = whitelistedIps.map((setting) => {
return new FirewallRule(
`whitelist-${setting.name}`,
{
resourceGroupName:
environmentConfig.azureConnections[0].resourceGroupName,
serverName: server.name,
startIpAddress: setting.ip,
endIpAddress: setting.ip,
},
{ provider: azureProvider }
);
});
tall-librarian-49374
11/22/2023, 11:59 AMwet-noon-14291
11/22/2023, 2:13 PMwet-noon-14291
11/22/2023, 8:20 PMtall-librarian-49374
11/23/2023, 11:31 AMwet-noon-14291
11/23/2023, 11:32 AMtall-librarian-49374
11/23/2023, 1:30 PMtall-librarian-49374
11/23/2023, 1:30 PMpulumi/azure-native/dbforpostgresql/v20221108
wet-noon-14291
11/23/2023, 3:19 PMtall-librarian-49374
11/23/2023, 8:03 PM