Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove EOT
Browse files Browse the repository at this point in the history
Chandra Reddy authored and Chandra Reddy committed Aug 16, 2024
1 parent fdd4776 commit edd0fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/04_rds.tf
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ resource "null_resource" "create_databases" {
for_each = { for combo in local.app_env_list : "${combo.app}-${combo.env}" => combo }

provisioner "local-exec" {
command = <<EOT mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e "CREATE DATABASE ${each.value.app}_${each.value.env};" EOT
command = "mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e 'CREATE DATABASE ${each.value.app}_${each.value.env};'"
}

depends_on = [aws_db_instance.default]

0 comments on commit edd0fe1

Please sign in to comment.