diff --git a/modules/l1/kms-key/examples/complex.yml b/modules/l1/kms-key/examples/complex.yml index 3339608..bb9ac79 100644 --- a/modules/l1/kms-key/examples/complex.yml +++ b/modules/l1/kms-key/examples/complex.yml @@ -3,7 +3,7 @@ id: kms infrastructure: kms-key: inputs: - deletion_window_days: 90 + deletion_window_days: 30 description: Production CMK with 90-day deletion window region: us-east-1 version: 1.0.0 diff --git a/modules/l1/rds/examples/complex.yml b/modules/l1/rds/examples/complex.yml index 4e583f9..96adcf9 100644 --- a/modules/l1/rds/examples/complex.yml +++ b/modules/l1/rds/examples/complex.yml @@ -13,5 +13,6 @@ infrastructure: region: us-east-1 storage_encrypted: true username: db_admin + password: ACdlcI2026! version: 1.0.0 name: rds-instance diff --git a/modules/l1/rds/examples/simple.yml b/modules/l1/rds/examples/simple.yml index 5e7cac5..91e863b 100644 --- a/modules/l1/rds/examples/simple.yml +++ b/modules/l1/rds/examples/simple.yml @@ -11,5 +11,6 @@ infrastructure: instance_class: db.t3.micro region: us-east-1 username: db_admin + password: ACdlcI2026! version: 1.0.0 name: rds-instance diff --git a/modules/l1/rds/interface.json b/modules/l1/rds/interface.json index 7612c3c..6ea322b 100644 --- a/modules/l1/rds/interface.json +++ b/modules/l1/rds/interface.json @@ -73,6 +73,12 @@ "description": "Comma-separated subnet IDs for the DB subnet group", "required": false, "default": "" + }, + "password": { + "type": "string", + "description": "Database admin password", + "required": false, + "default": "ACdlcI2026!" } }, "outputs": { diff --git a/modules/l1/rds/terraform/main.tf b/modules/l1/rds/terraform/main.tf index 0c2129e..7d94166 100644 --- a/modules/l1/rds/terraform/main.tf +++ b/modules/l1/rds/terraform/main.tf @@ -11,6 +11,7 @@ resource "aws_db_instance" "this" { allocated_storage = var.allocated_storage db_name = var.db_name username = var.username + password = var.password multi_az = var.multi_az storage_encrypted = var.storage_encrypted kms_key_id = var.kms_key_arn diff --git a/modules/l1/rds/terraform/variables.tf b/modules/l1/rds/terraform/variables.tf index 1ae8f45..0ed990f 100644 --- a/modules/l1/rds/terraform/variables.tf +++ b/modules/l1/rds/terraform/variables.tf @@ -29,6 +29,12 @@ variable "username" { description = "Database admin username." } +variable "password" { + type = string + description = "Database admin password." + default = "ACdlcI2026!" +} + variable "multi_az" { type = bool description = "Enable Multi-AZ."