AWS Directory Service Directory

This page shows how to write Terraform for AWS Directory Service Directory and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_directory_service_directory)

Provides a Simple or Managed Microsoft directory in AWS Directory Service.

Note: All arguments including the password and customer username will be stored in the raw state as plain-text. Read more about sensitive data in state.

Parameters

Example Usage (from GitHub)

github-iconinfracost/infracost
resource "aws_directory_service_directory" "simple_ad_small" {
  name     = "simplead-small-123456"
  type     = "SimpleAD"
  password = "SuperSecretPassw0rd"
  size     = "Small"

github-iconRaduLupan/terraform-rdgateway-aws
resource "aws_directory_service_directory" "microsoft_ad" {
  count = local.ms_ad_count

  name     = var.ad_domain_fqdn
  password = var.ad_admin_password

github-iconsantiagowork/Terraform
resource "aws_directory_service_directory" "this" {
  name        = var.directory.domain
  short_name  = var.directory.short_name
  type        = lookup(var.directory, "type", null)
  edition     = lookup(var.directory, "edition", null)
  description = var.directory.description
github-iconedwardpius/terraform-aws-msad
resource "aws_directory_service_directory" "myapp_ad" {
  name     = var.dir_domain_name
  password = var.dir_admin_password
  size     = "Large"
  vpc_settings {
    vpc_id = aws_vpc.vpc_myapp.id

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Directory Service Directory?

AWS Directory Service Directory is a resource for Directory Service of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Directory Service Directory?

For Terraform, the infracost/infracost, RaduLupan/terraform-rdgateway-aws and santiagowork/Terraform source code examples are useful. See the Terraform Example section for further details.