From 4eb70646d3c8845114a1d9d00b5796d30595b537 Mon Sep 17 00:00:00 2001
From: bernokl <bernokl@gmail.com>
Date: Thu, 12 Sep 2024 17:04:06 -0400
Subject: [PATCH] chore: add headless handle projector

---
 nix/cardano-services/deployments/default.nix | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/nix/cardano-services/deployments/default.nix b/nix/cardano-services/deployments/default.nix
index b22658095e8..522094a9589 100644
--- a/nix/cardano-services/deployments/default.nix
+++ b/nix/cardano-services/deployments/default.nix
@@ -873,22 +873,24 @@ in
         value
         // {
           context = "eks-admin";
-          projectors.asset.enabled = true;
+          projectors.handle.enabled = true;
 
           values = {
             ingress.enabled = false;
           };
         })) {
-        #"live-mainnet@us-east-2@asset" = {
-        #  name = "tmp-cardanojs";
-        #  namespace = "live-mainnet";
-        #  network = "mainnet";
-        #  region = "us-east-2";
-        #};
+        "dev-preview@us-east-1@handle" = {
+          name = "tmp-cardanojs";
+          namespace = "dev-preview";
+          network = "preview";
+          region = "us-east-1";
+        # TODO: something like this for alternate database?
+        # handle.databaseName = "handlelv2";
+        };
       });
 
     targetGroups = targets: {
-      #ASSET = lib.filterAttrs (name: _: lib.hasSuffix "asset" name) targets;
+      HANDLE = lib.filterAttrs (name: _: lib.hasSuffix "handle" name) targets;
       DEV = lib.filterAttrs (name: _: lib.hasPrefix "dev-" name) targets;
       LIVE = lib.filterAttrs (name: _: lib.hasPrefix "live-" name) targets;
       OPS = lib.filterAttrs (name: _: lib.hasPrefix "ops-" name) targets;