-
-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Labels
bug🐛 An issue with the system🐛 An issue with the system
Description
Describe the Bug
│ Error: Invalid function argument
│
│ on .terraform/modules/documentdb/outputs.tf line 7, in output "master_password":
│ 7: value = var.manage_master_user_password != null ? join("", aws_docdb_cluster.default[*].master_password) : null
│ ├────────────────
│ │ while calling join(separator, lists...)
│ │ aws_docdb_cluster.default is tuple with 1 element
│
│ Invalid value for "lists" parameter: element 0 is null; cannot concatenate null values.
Expected Behavior
No Error and able to apply changes
Steps to Reproduce
module "documentdb" {
source = "cloudposse/documentdb-cluster/aws"
version = "0.30.1"
ca_cert_identifier = "rds-ca-rsa2048-g1"
apply_immediately = false
# deletion_protection = true
name = "documentdb"
cluster_size = 1
master_username = "administrator"
manage_master_user_password = true
instance_class = "db.t3.medium"
vpc_id = data.aws_vpc.workload_vpc.id
subnet_ids = local.workload_private_subnet_ids
allowed_security_groups = local.trustd_docdb_lambda_sg_ids
allowed_cidr_blocks = ["0.0.0.0/0"]
cluster_family = "docdb4.0"
engine_version = "4.0.0"
preferred_backup_window = "00:00-00:30"
preferred_maintenance_window = "sun:05:00-sun:05:30"
}
Screenshots
No response
Environment
No response
Additional Context
No response
shinenelson, SerhiiMy, MykolaHorovykh and tdinunzio-trayport
Metadata
Metadata
Assignees
Labels
bug🐛 An issue with the system🐛 An issue with the system