Last active
October 2, 2023 08:27
-
-
Save ignorabilis/fb89dd4b6b538e14e7c887e49f492a16 to your computer and use it in GitHub Desktop.
Env vars in Clojure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; overly simplified, but you get the idea | |
(def parameters | |
[:something-something | |
:another-something]) | |
(def secrets | |
[:secret-secret | |
:very-secret]) | |
(defn config [context] | |
(let [params (fetch-from-parameter-store context parameters) | |
secrets (fetch-from-secrets-manager context secrets)] | |
(merge params secrets))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment