mirror of
https://github.com/cloudflare/terraform-provider-cloudflare.git
synced 2026-01-16 23:00:33 +00:00
1.3 KiB
1.3 KiB
| page_title | subcategory | description |
|---|---|---|
| cloudflare_d1_database Resource - Cloudflare |
cloudflare_d1_database (Resource)
!> When a D1 Database is replaced all the data is lost. Please ensure you have a backup of your data before replacing a D1 Database.
Example Usage
resource "cloudflare_d1_database" "example_d1_database" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "my-database"
primary_location_hint = "wnam"
}
Schema
Required
account_id(String) Account identifier tag.name(String) D1 database name.
Optional
primary_location_hint(String) Specify the region to create the D1 primary, if available. If this option is omitted, the D1 will be created as close as possible to the current user.
Read-Only
created_at(String) Specifies the timestamp the resource was created as an ISO8601 string.file_size(Number) The D1 database's size, in bytes.id(String) D1 database identifier (UUID).num_tables(Number)uuid(String) D1 database identifier (UUID).version(String)
Import
Import is supported using the following syntax:
$ terraform import cloudflare_d1_database.example '<account_id>/<database_id>'