Resource
dcloud_app_domain
A custom domain on an app. Point the domain's DNS at the app (an ALIAS dcloud_dns_record does) and Deutsche Cloud issues the certificate.
Example Usage
resource "dcloud_app_domain" "www" {
app_id = dcloud_app.web.id
domain = "www.acme.example"
}Schema
Required
app_id(String) The id of the parent resource ({id}in the path). Changing it replaces the resource.domain(String) Hostname to serve the app on, or *.host for every subdomain of host. Up to 253 characters. Must match^(\*\.)?[a-z0-9.-]+$. Changing it replaces the resource.
Optional
is_primary(Boolean) Mark this as the app’s primary domain; default false Changing it replaces the resource.
Read-Only
id(String) The resource's id.tls_status(String) Certificate status.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_app_domain.www <app-id>/<domain-id>Generated from the provider's schema.
Related