2022-08-18 18:15:21 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PG_USER=terraform
|
|
|
|
PG_HOST=pg.monotremata.xyz
|
|
|
|
PG_DB=terraform_backend
|
|
|
|
PG_PORT=5432
|
|
|
|
|
|
|
|
passwd=$(pass "${PG_HOST}/${PG_USER}")
|
|
|
|
conn_str="postgres://${PG_USER}:${passwd}@${PG_HOST}:${PG_PORT}/${PG_DB}"
|
|
|
|
|
2022-08-25 10:43:04 +02:00
|
|
|
terraform -chdir=./tf init -backend-config="conn_str=${conn_str}"
|