» google_active_directory_domain_trust

Adds a trust between Active Directory domains

To get more information about DomainTrust, see:

» Example Usage - Active Directory Domain Trust Basic

resource "google_active_directory_domain_trust" "ad-domain-trust" {
    domain     = "test-managed-ad.com"
    target_domain_name = "example-gcp.com"
    target_dns_ip_addresses = ["10.1.0.100"]
    trust_direction         = "OUTBOUND"
    trust_type              = "FOREST"
    trust_handshake_secret  = "Testing1!"
}

» Argument Reference

The following arguments are supported:


  • selective_authentication - (Optional) Whether the trusted side has forest/domain wide access or selective access to an approved set of resources.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/locations/global/domains/{{domain}}/{{target_domain_name}}

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 10 minutes.
  • update - Default is 10 minutes.
  • delete - Default is 10 minutes.

» Import

DomainTrust can be imported using any of these accepted formats:

$ terraform import google_active_directory_domain_trust.default projects/{{project}}/locations/global/domains/{{domain}}/{{target_domain_name}}
$ terraform import google_active_directory_domain_trust.default {{project}}/{{domain}}/{{target_domain_name}}
$ terraform import google_active_directory_domain_trust.default {{domain}}/{{target_domain_name}}

» User Project Overrides

This resource supports User Project Overrides.