The D1 Database resource allows you to manage Cloudflare D1 databases.
resource "cloudflare_d1_database" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "terraform-database"
}
account_id
(String) The account identifier to target for the resource.name
(String) The name of the D1 Database.id
(String) The identifier of this resource.version
(String) The backend version of the database.Import is supported using the following syntax:
$ terraform import cloudflare_d1_database.example <account id>/<database id>