Skip to content

Commit

Permalink
Merge pull request #13 from dfds/feature/cloudplatform-2207
Browse files Browse the repository at this point in the history
Option to enable IAM Authentication for RDS Proxy
  • Loading branch information
avnes authored Nov 23, 2023
2 parents 15195b6 + 77a61d8 commit 069ddc8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Terraform module for AWS RDS instances
| <a name="input_proxy_name"></a> [proxy\_name](#input\_proxy\_name) | Name of the RDS proxy. Will be auto-generated if not specified | `string` | `null` | no |
| <a name="input_proxy_require_tls"></a> [proxy\_require\_tls](#input\_proxy\_require\_tls) | Require tls on the RDS proxy. Default: true | `bool` | `true` | no |
| <a name="input_publicly_accessible"></a> [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no |
| <a name="input_rds_proxy_iam_auth"></a> [rds\_proxy\_iam\_auth](#input\_rds\_proxy\_iam\_auth) | n/a | `string` | `"DISABLED"` | no |
| <a name="input_rds_proxy_security_group_ids"></a> [rds\_proxy\_security\_group\_ids](#input\_rds\_proxy\_security\_group\_ids) | n/a | `list(string)` | `[]` | no |
| <a name="input_replica_mode"></a> [replica\_mode](#input\_replica\_mode) | Specifies whether the replica is in either mounted or open-read-only mode. This attribute is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified | `string` | `null` | no |
| <a name="input_replicate_source_db"></a> [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate | `string` | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ locals {
(var.username) = {
description = "Proxy user for ${var.username}"
secret_arn = local.db_proxy_secret_arn # aws_secretsmanager_secret.superuser.arn
iam_auth = var.rds_proxy_iam_auth
}
}

Expand Down
9 changes: 9 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,20 @@ variable "vpc_id" { # TODO: include?
type = string
default = null
}

variable "rds_proxy_security_group_ids" { # TODO: remove
type = list(string)
default = []
}

variable "rds_proxy_iam_auth" {
type = string
default = "DISABLED"
validation {
condition = contains(["DISABLED", "REQUIRED"], var.rds_proxy_iam_auth)
error_message = "Invalid value for var.rds_proxy_iam_auth. Supported values: DISABLED, REQUIRED."
}
}

variable "is_serverless" { # tempprary variable for testing
type = bool
Expand Down

0 comments on commit 069ddc8

Please sign in to comment.