Skip to content

Commit

Permalink
Merge pull request #149 from nimblehq/bug/148-fix-wrong-database-url
Browse files Browse the repository at this point in the history
[#148] Fix: Wrong database_url string in SSM module
  • Loading branch information
hoangmirs authored Dec 30, 2022
2 parents c74cd80 + e144c97 commit 2c2ee8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/templates/aws/addons/ssm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ const ssmVariablesContent = dedent`
type = string
}
\n`;
/* eslint-disable no-template-curly-in-string */
const databaseUrlString =
'postgres://${var.rds_username}:${var.rds_password}@${module.rds.db_endpoint}/${var.rds_database_name}';
/* eslint-enable no-template-curly-in-string */
const ssmModuleContent = dedent`
module "ssm" {
source = "./modules/ssm"
namespace = var.namespace
secrets = {
database_url = "postgres://\${var.rds_username}:\${var.rds_password}@\${module.rds.db_endpoint}/\${var.rds_database_name}"
database_url = "${databaseUrlString}"
secret_key_base = var.secret_key_base
}
}
Expand Down

0 comments on commit 2c2ee8a

Please sign in to comment.