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:


Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

DomainTrust can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import DomainTrust using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/global/domains/{{domain}}/{{target_domain_name}}"
  to = google_active_directory_domain_trust.default
}

When using the terraform import command, DomainTrust can be imported using one of the formats above. For example:

$ 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.