Skip to content

Commit 7853eb8

Browse files
committed
fix: owner and permission of pgpass
1 parent 997e352 commit 7853eb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

terraform/bastion/dev/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,8 @@ resource "aws_instance" "bastion" {
126126
${file("${path.module}/.pgpass")}
127127
PGPASSFILE
128128
129+
chmod 600 /home/ubuntu/.pgpass
130+
chown ubuntu:ubuntu /home/ubuntu/.pgpass
131+
129132
EOF
130133
}

0 commit comments

Comments
 (0)