» google_active_directory_domain

Creates a Microsoft AD domain

To get more information about Domain, see:

» Example Usage - Active Directory Domain Basic

resource "google_active_directory_domain" "ad-domain" {
  domain_name       = "tfgen.org.com"
  locations         = ["us-central1"]
  reserved_ip_range = "192.168.255.0/24" 
}

» Argument Reference

The following arguments are supported:


  • labels - (Optional) Resource labels that can contain user-provided metadata

  • authorized_networks - (Optional) The full names of the Google Compute Engine networks the domain instance is connected to. The domain is only available on networks listed in authorizedNetworks. If CIDR subnets overlap between networks, domain creation will fail.

  • admin - (Optional) The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

  • 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 {{name}}

  • name - The unique name of the domain using the format: projects/{project}/locations/global/domains/{domainName}.

  • fqdn - The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

» Timeouts

This resource provides the following Timeouts configuration options:

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

» Import

Domain can be imported using any of these accepted formats:

$ terraform import google_active_directory_domain.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.