Skip to content

Commit 29bb9d6

Browse files
authored
feat: Add domain support (terraform-aws-modules#429)
* add domain support * add domain support example Signed-off-by: Mehmet Gungoren <[email protected]> * fmt * fixed of pre-commit checks Signed-off-by: Mehmet Gungoren <[email protected]> * remove kerberos examples Signed-off-by: Mehmet Gungoren <[email protected]> --------- Signed-off-by: Mehmet Gungoren <[email protected]>
1 parent 1b34843 commit 29bb9d6

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ Terraform documentation is generated automatically using [pre-commit hooks](http
224224
| Name | Version |
225225
|------|---------|
226226
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
227-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.26 |
227+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.37 |
228228

229229
## Providers
230230

231231
| Name | Version |
232232
|------|---------|
233-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.26 |
233+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.37 |
234234

235235
## Modules
236236

@@ -311,6 +311,8 @@ No modules.
311311
| <a name="input_db_subnet_group_name"></a> [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | The name of the subnet group name (existing or created) | `string` | `""` | no |
312312
| <a name="input_delete_automated_backups"></a> [delete\_automated\_backups](#input\_delete\_automated\_backups) | Specifies whether to remove automated backups immediately after the DB cluster is deleted | `bool` | `null` | no |
313313
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to `true`. The default is `false` | `bool` | `null` | no |
314+
| <a name="input_domain"></a> [domain](#input\_domain) | The ID of the Directory Service Active Directory domain to create the instance in | `string` | `null` | no |
315+
| <a name="input_domain_iam_role_name"></a> [domain\_iam\_role\_name](#input\_domain\_iam\_role\_name) | (Required if domain is provided) The name of the IAM role to be used when making API calls to the Directory Service | `string` | `null` | no |
314316
| <a name="input_enable_global_write_forwarding"></a> [enable\_global\_write\_forwarding](#input\_enable\_global\_write\_forwarding) | Whether cluster should forward writes to an associated global cluster. Applied to secondary clusters to enable them to forward writes to an `aws_rds_global_cluster`'s primary cluster | `bool` | `null` | no |
315317
| <a name="input_enable_http_endpoint"></a> [enable\_http\_endpoint](#input\_enable\_http\_endpoint) | Enable HTTP endpoint (data API). Only valid when engine\_mode is set to `serverless` | `bool` | `null` | no |
316318
| <a name="input_enabled_cloudwatch_logs_exports"></a> [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | Set of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: `audit`, `error`, `general`, `slowquery`, `postgresql` | `list(string)` | `[]` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ resource "aws_rds_cluster" "this" {
6464
engine_version = var.engine_version
6565
final_snapshot_identifier = var.final_snapshot_identifier
6666
global_cluster_identifier = var.global_cluster_identifier
67+
domain = var.domain
68+
domain_iam_role_name = var.domain_iam_role_name
6769
iam_database_authentication_enabled = var.iam_database_authentication_enabled
6870
# iam_roles has been removed from this resource and instead will be used with aws_rds_cluster_role_association below to avoid conflicts per docs
6971
iops = var.iops

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,18 @@ variable "iam_database_authentication_enabled" {
186186
default = null
187187
}
188188

189+
variable "domain" {
190+
description = "The ID of the Directory Service Active Directory domain to create the instance in"
191+
type = string
192+
default = null
193+
}
194+
195+
variable "domain_iam_role_name" {
196+
description = "(Required if domain is provided) The name of the IAM role to be used when making API calls to the Directory Service"
197+
type = string
198+
default = null
199+
}
200+
189201
variable "iops" {
190202
description = "The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster"
191203
type = number

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.26"
7+
version = ">= 5.37"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)