Skip to content

Commit b526409

Browse files
committed
Support underscore in app_name value
1 parent 821edb7 commit b526409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "random_id" "final_snapshot_id" {
1313
}
1414

1515
resource "aws_db_instance" "db" {
16-
identifier = "${local.stack}-${var.app_name}"
16+
identifier = replace("${local.stack}-${var.app_name}", "_", "")
1717
snapshot_identifier = var.snapshot_identifier
1818
allocated_storage = var.snapshot_identifier != "" ? null : var.allocated_storage
1919
storage_type = "gp2"

0 commit comments

Comments
 (0)