Manages a V1 DB database resource within OpenStack.
resource "openstack_db_database_v1" "mydb" {
name = "mydb"
instance_id = openstack_db_instance_v1.basic.id
}
The following arguments are supported:
name
- (Required) A unique name for the resource.
instance_id
- (Required) The ID for the database instance.
The following attributes are exported:
region
- Openstack region resource is created in.name
- See Argument Reference above.instance_id
- See Argument Reference above.Databases can be imported by using instance-id/db-name
, e.g.
$ terraform import openstack_db_database_v1.mydb 7b9e3cd3-00d9-449c-b074-8439f8e274fa/mydb