1. Packages
  2. PostgreSQL
PostgreSQL v3.11.0 published on Sunday, Mar 3, 2024 by Pulumi

PostgreSQL

postgresql logo
PostgreSQL v3.11.0 published on Sunday, Mar 3, 2024 by Pulumi

    The PostgreSQL provider for Pulumi can be used to provision any of the resources available for PostgreSQL. The PostgreSQL provider must be configured with credentials to deploy and update resources in PostgreSQL.

    Example

    const postgresql = require("@pulumi/postgresql")
    
    const myDb = new postgresql.Database("my-database");
    
    import * as postgresql from "@pulumi/postgresql";
    
    const myDb = new postgresql.Database("my-database");
    
    import pulumi_postgresql as postgresql
    
    my_db = postgresql.Database("my-database")
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	postgresql "github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myDb, err := postgresql.NewDatabase(ctx, "my-database", &postgresql.DatabaseArgs{})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Postgresql;
    
    class Program
    {
        static Task Main() =>
            Deployment.Run(() => {
                mydatabase = new Database("my-database", new DatabaseArgs{});
            });
    }
    
    postgresql logo
    PostgreSQL v3.11.0 published on Sunday, Mar 3, 2024 by Pulumi