File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Create a postgres RDS instance
2929| create\_ ssm\_ secret | True to create a SSM Parameter SecretString containing DB password | ` bool ` | ` false ` | no |
3030| engine | Which RDS Engine to use | ` string ` | ` "postgres" ` | no |
3131| engine\_ version | Version of database engine to use | ` string ` | ` "11.5" ` | no |
32+ | iam\_ db\_ auth | True to enable IAM DB authentication | ` bool ` | ` false ` | no |
33+ | identifier | Identifier for DB Instance | ` string ` | n/a | yes |
3234| instance\_ class | What instance size to use | ` string ` | ` "db.t3.small" ` | no |
3335| multi\_ az | whether to make database multi-az | ` string ` | ` true ` | no |
3436| name | common name for resources in this module | ` string ` | ` "postgres-rds" ` | no |
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ resource "aws_db_instance" "this" {
1616 deletion_protection = true
1717 engine = var. engine
1818 engine_version = var. engine_version
19- iam_database_authentication_enabled = true
19+ iam_database_authentication_enabled = var. iam_db_auth
20+ identifier = var. identifier
2021 instance_class = var. instance_class
2122 multi_az = var. multi_az
2223 name = var. name
Original file line number Diff line number Diff line change @@ -52,6 +52,17 @@ variable "engine_version" {
5252 type = string
5353}
5454
55+ variable "iam_db_auth" {
56+ default = false
57+ description = " True to enable IAM DB authentication"
58+ type = bool
59+ }
60+
61+ variable "identifier" {
62+ description = " Identifier for DB Instance"
63+ type = string
64+ }
65+
5566variable "instance_class" {
5667 default = " db.t3.small"
5768 description = " What instance size to use"
You can’t perform that action at this time.
0 commit comments