Skip to content

Instantly share code, notes, and snippets.

@ignorabilis
Last active October 2, 2023 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignorabilis/fb89dd4b6b538e14e7c887e49f492a16 to your computer and use it in GitHub Desktop.
Save ignorabilis/fb89dd4b6b538e14e7c887e49f492a16 to your computer and use it in GitHub Desktop.
Env vars in Clojure
;; 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