{"id":19580448,"url":"https://github.com/dod-iac/terraform-aws-ds-directory","last_synced_at":"2026-05-19T05:37:53.934Z","repository":{"id":53828277,"uuid":"343886384","full_name":"dod-iac/terraform-aws-ds-directory","owner":"dod-iac","description":"AWS Directory Service directory","archived":false,"fork":false,"pushed_at":"2021-03-12T00:43:42.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-09T05:17:56.429Z","etag":null,"topics":["ad","aws","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dod-iac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-02T19:19:37.000Z","updated_at":"2021-08-04T18:49:58.000Z","dependencies_parsed_at":"2022-08-22T04:20:42.873Z","dependency_job_id":null,"html_url":"https://github.com/dod-iac/terraform-aws-ds-directory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-ds-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-ds-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-ds-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-ds-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dod-iac","download_url":"https://codeload.github.com/dod-iac/terraform-aws-ds-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240849053,"owners_count":19867617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ad","aws","terraform"],"created_at":"2024-11-11T07:26:06.956Z","updated_at":"2025-10-30T16:03:25.197Z","avatar_url":"https://github.com/dod-iac.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Usage\n\nCreates a AWS Directory Service directory with logging to an encrypted log group in CloudWatch.  \nThe directory resource is configured to ignore changes to the password value.\n\n```hcl\ndata \"aws_ssm_parameter\" \"directory_password\" {\n  name = format(\"/app-%s-%s/directory-password\", var.application, var.environment)\n}\n\nmodule \"cloudwatch_kms_key\" {\n  source = \"dod-iac/cloudwatch-kms-key/aws\"\n\n  name = format(\"alias/app-%s-cloudwatch-logs-%s\", var.application, var.environment)\n\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n\nmodule \"directory\" {\n  source = \"dod-iac/ds-directory/aws\"\n\n  cloudwatch_kms_key_arn = module.cloudwatch_kms_key.aws_kms_key_arn\n  description    = format(\"A MicrosoftAD Directory for use with %s application in the %s environment\", var.application, var.environment)\n  edition        = \"Standard\"\n  name           = format(\"%s.%s\", var.environment, var.application)\n  password       = data.aws_ssm_parameter.directory_password.value\n  short_name     = title(var.application)\n  type           = \"MicrosoftAD\"\n  vpc_id         = var.vpc_id\n  vpc_subnet_ids = var.vpc_subnet_ids\n\n  tags  = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n```\n\n## Terraform Version\n\nTerraform 0.13. Pin module version to ~\u003e 1.0.0 . Submit pull-requests to master branch.\n\nTerraform 0.11 and 0.12 are not supported.\n\n## License\n\nThis project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105.  However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License.  See LICENSE file for more information.\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.13 |\n| aws | ~\u003e 3.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | ~\u003e 3.0 |\n\n## Modules\n\nNo Modules.\n\n## Resources\n\n| Name |\n|------|\n| [aws_caller_identity](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) |\n| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) |\n| [aws_cloudwatch_log_resource_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_resource_policy) |\n| [aws_directory_service_directory](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/directory_service_directory) |\n| [aws_directory_service_log_subscription](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/directory_service_log_subscription) |\n| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |\n| [aws_partition](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) |\n| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| cloudwatch\\_kms\\_key\\_arn | A KMS key used to encrypt Domain Controller security logs stored in CloudWatch Logs. | `string` | n/a | yes |\n| description | A textual description for the directory.  Defaults to \"short\\_name (name)\". | `string` | `\"\"` | no |\n| edition | If type is Microsoft AD, the edition, either Standard or Enterprise. | `string` | `\"Standard\"` | no |\n| name | The fully qualified name for the directory, e.g., corp.example.com | `string` | n/a | yes |\n| password | The password for the directory administrator or connector user. | `string` | n/a | yes |\n| short\\_name | The short name of the directory, e.g, CORP. | `string` | n/a | yes |\n| tags | Tags applied to the directory and CloudWatch log group. | `map(string)` | `{}` | no |\n| type | The directory type, either SimpleAD, ADConnector, or MicrosoftAD. | `string` | n/a | yes |\n| vpc\\_id | The identifier of the VPC that the directory is in. | `string` | n/a | yes |\n| vpc\\_subnet\\_ids | The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). | `list(string)` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| directory\\_id | The directory identifier. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-ds-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdod-iac%2Fterraform-aws-ds-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-ds-directory/lists"}