Skip to content

googleActiveDirectoryDomain

Creates a Microsoft AD domain

To get more information about Domain, see:

Example Usage - Active Directory Domain Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.activeDirectoryDomain.ActiveDirectoryDomain(this, "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:

  • reservedIpRange - (Required) The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in authorizedNetworks

  • locations - (Required) Locations where domain needs to be provisioned. [regions][compute/docs/regions-zones/] e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

  • domainName - (Required) The fully qualified domain name. e.g. mydomain.myorganization.com, with the restrictions, https://cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains.


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

  • authorizedNetworks - (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.