mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-02 13:00:45 -05:00
816 B
816 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| postgresql | PostgreSQL: postgresql_database | docs-postgresql-resource-postgresql_database | Creates and manages a database on a PostgreSQL server. |
postgresql_database
The postgresql_database resource creates and manages a database on a PostgreSQL
server.
Usage
resource "postgresql_database" "my_db" {
name = "my_db"
owner = "my_role"
}
Argument Reference
-
name- (Required) The name of the database. Must be unique on the PostgreSQL server instance where it is configured. -
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.