File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ In particular:
26
26
27
27
``` hcl
28
28
module "foo" {
29
- source = "git@github.com:edgelaboratories/terraform-postgresql-db?ref=v0.4.2 "
29
+ source = "git@github.com:edgelaboratories/terraform-postgresql-db?ref=v0.4.3 "
30
30
31
31
database = "foo"
32
32
owner = "admin" # Optional, default to database name
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ resource "vault_database_secret_backend_role" "owner" {
14
14
db_name = var. vault_db_connection_name
15
15
16
16
creation_statements = concat ([
17
- " CREATE ROLE \" {{name}}\" IN ROLE ${ each . value } LOGIN PASSWORD '{{password}}' INHERIT VALID UNTIL '{{expiration}}';" ,
17
+ " CREATE ROLE \" {{name}}\" IN ROLE \" ${ each . value } \" LOGIN PASSWORD '{{password}}' INHERIT VALID UNTIL '{{expiration}}';" ,
18
18
19
19
# Automatically SET ROLE to db owner at login
20
- " ALTER ROLE \" {{name}}\" IN DATABASE ${ postgresql_database . this . name } SET ROLE ${ each . value } " ,
20
+ " ALTER ROLE \" {{name}}\" IN DATABASE \" ${ postgresql_database . this . name } \" SET ROLE \" ${ each . value } \" ; " ,
21
21
])
22
22
23
23
renew_statements = [
You can’t perform that action at this time.
0 commit comments