aboutsummaryrefslogtreecommitdiff
path: root/terraform/knot-pdb
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/knot-pdb')
-rw-r--r--terraform/knot-pdb/pdb.tf8
1 files changed, 2 insertions, 6 deletions
diff --git a/terraform/knot-pdb/pdb.tf b/terraform/knot-pdb/pdb.tf
index 2a63601..7b2e6fc 100644
--- a/terraform/knot-pdb/pdb.tf
+++ b/terraform/knot-pdb/pdb.tf
@@ -24,11 +24,7 @@ resource "linode_object_storage_key" "wal" {
resource "sops_file" "secret_data" {
encryption_type = "age"
filename = "../../knot-pdb.sops.yml"
- content = yamlencode(local.env)
-}
-
-locals {
- env = {
+ content = yamlencode({
AWS_ACCESS_KEY_ID = linode_object_storage_key.wal.access_key
AWS_SECRET_ACCESS_KEY = linode_object_storage_key.wal.secret_key
WALG_S3_PREFIX = "s3://${linode_object_storage_bucket.wal.label}"
@@ -36,5 +32,5 @@ locals {
AWS_REGION = data.linode_object_storage_cluster.cluster.id
AWS_ENDPOINT = "https://${data.linode_object_storage_cluster.cluster.id}.linodeobjects.com"
PGHOST = ""
- }
+ })
}