Resource
dcloud_bucket_domain
A custom domain of a bucket's website. Point it at cname_target with a CNAME (a Deutsche Cloud hosted zone of the domain gets the record automatically).
Example Usage
resource "dcloud_bucket_domain" "www" {
bucket = dcloud_bucket.site.id
domain = "www.example.com"
}
# At the domain's DNS host (not needed when the zone is hosted on Deutsche Cloud):
# www.example.com. CNAME <dcloud_bucket_domain.www.cname_target>.Schema
Required
bucket(String) The id of the parent resource ({name}in the path). Changing it replaces the resource.domain(String) A domain of your own, lower case, e.g.www.example.com. Changing it replaces the resource.
Read-Only
cname_target(String) The host the domain's CNAME points at.id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_bucket_domain.www <bucket-name>/<domain>Generated from the provider's schema.
Related