aboutsummaryrefslogtreecommitdiff
path: root/terraform/knot-pdb
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
commitfdf38928edd187949c8f4fc5a60b9780500d3e2e (patch)
tree4c8f90942e63ae66d1ca66c0af0096bc54a71abb /terraform/knot-pdb
parent03c07f8d89adf7282f0da25e2342b9749ca1e5cc (diff)
downloadinfra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.gz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.bz2
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.xz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.zip
concourse
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 = ""
- }
+ })
}