diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2023-10-23 14:41:22 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2023-10-23 14:41:22 +0200 |
commit | 3538a96392087c84af955772047b070fced8fccc (patch) | |
tree | 35e4b60de30ef93382fdc533a387c9a9e493d9a4 /terraform/grafana/pdb.tf | |
parent | f2a08300e11bc6040291ec12d4b78070f4bb94a0 (diff) | |
download | infra-3538a96392087c84af955772047b070fced8fccc.tar.gz infra-3538a96392087c84af955772047b070fced8fccc.tar.bz2 infra-3538a96392087c84af955772047b070fced8fccc.tar.xz infra-3538a96392087c84af955772047b070fced8fccc.zip |
grafana
Diffstat (limited to 'terraform/grafana/pdb.tf')
-rw-r--r-- | terraform/grafana/pdb.tf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/terraform/grafana/pdb.tf b/terraform/grafana/pdb.tf new file mode 100644 index 0000000..e2a59cd --- /dev/null +++ b/terraform/grafana/pdb.tf @@ -0,0 +1,13 @@ +resource "random_uuid" "grafana_password" { +} + +resource "postgresql_role" "grafana" { + name = "grafana" + login = true + password = random_uuid.grafana_password.result +} + +resource "postgresql_database" "grafana" { + name = "grafana" + owner = "grafana" +} |