github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/website/source/docs/providers/postgresql/r/postgresql_database.html.markdown (about)

     1  ---
     2  layout: "postgresql"
     3  page_title: "PostgreSQL: postgresql_database"
     4  sidebar_current: "docs-postgresql-resource-postgresql_database"
     5  description: |-
     6    Creates and manages a database on a PostgreSQL server.
     7  ---
     8  
     9  # postgresql\_database
    10  
    11  The ``postgresql_database`` resource creates and manages a database on a PostgreSQL
    12  server.
    13  
    14  
    15  ## Usage
    16  
    17  ```
    18  resource "postgresql_database" "my_db" {
    19     name = "my_db"
    20     owner = "my_role
    21  }
    22  
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  * `name` - (Required) The name of the database. Must be unique on the PostgreSQL server instance
    28    where it is configured.
    29  
    30  * `owner` - (Optional) The owner role of the database. If not specified the default is the user executing the command. To create a database owned by another role, you must be a direct or indirect member of that role, or be a superuser.