Resource

dcloud_iam_sso_domain

An email domain of an SSO connection. It counts once verified: publish the TXT record (verification_record_name = verification_record_value, e.g. with dcloud_dns_record) and verify it in the console or with dcloud iam sso-connections verify-domain. Until then verified_at is null and the connection cannot be enabled.

Example Usage

resource "dcloud_iam_sso_domain" "acme" {
  connection_id = dcloud_iam_sso_connection.okta.id
  domain        = "acme.com"
}

# The proof Deutsche Cloud looks for (`verification_record_name` is the full name,
# `_ews-verification.acme.com`). Verify it afterwards in the console.
resource "dcloud_dns_record" "sso_proof" {
  zone_id = dcloud_dns_zone.acme.id
  name    = "_ews-verification"
  type    = "TXT"
  ttl     = 300
  values  = [dcloud_iam_sso_domain.acme.verification_record_value]
}

Schema

Required

  • connection_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • domain (String) The domain, e.g. example.com; addresses @example.com sign in through the connection. Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.
  • verification_record_name (String) The TXT record's name.
  • verification_record_value (String) The TXT record's value.
  • verified_at (String) When the domain was verified; null until then.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_iam_sso_domain.acme <connection-id>/<domain-id>

Generated from the provider's schema.