Resource
dcloud_bucket
An S3 bucket. Its id is its name. Deleting a bucket that still holds objects is refused.
Example Usage
resource "dcloud_bucket" "assets" {
name = "acme-assets"
}Schema
Required
name(String) Globally unique: 3–63 lowercase letters, digits and hyphens, no dots. 3 to 63 characters. Must match^[a-z0-9][a-z0-9-]*[a-z0-9]$. Changing it replaces the resource.
Optional
object_lock(Boolean) Enable object lock, and with it versioning, for good. Only possible at creation Changing it replaces the resource.tags(Map of String) Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them). Changing it replaces the resource.zone(String) Zone the bytes live in, e.g. de1a (Falkenstein) or de1b (Nuremberg); the region default when omitted. Fixed for good. Up to 16 characters. Changing it replaces the resource.
Read-Only
id(String) The resource's id.path_style_url(String) Path-style URL.virtual_hosted_url(String) Virtual-hosted-style URL.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_bucket.assets acme-assetsGenerated from the provider's schema.
Related