Skip to content

Commit ca5ae58

Browse files
authored
Fix role naming (#5)
1 parent a5c28d0 commit ca5ae58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "postgresql_grant" "public" {
4444
resource "postgresql_role" "role_ro" {
4545
for_each = local.databases
4646

47-
name = each.key
47+
name = "${each.key}_role_ro"
4848
superuser = false
4949
create_database = false
5050
create_role = false
@@ -91,7 +91,7 @@ resource "postgresql_grant" "role_ro" {
9191
resource "postgresql_role" "role_rw" {
9292
for_each = local.databases
9393

94-
name = each.key
94+
name = "${each.key}_role_rw"
9595
superuser = false
9696
create_database = false
9797
create_role = false

0 commit comments

Comments
 (0)