staticweb-io / cloudformation-templating

A library for creating CloudFormation templates.

Repository from Github https://github.comstaticweb-io/cloudformation-templatingRepository from Github https://github.comstaticweb-io/cloudformation-templating

cloudformation-templating

Clojars Project CljDoc Badge

A library for creating CloudFormation templates.

Importing existing templates

JSON templates can be converted to EDN (or Clojure) using this function:

(require '[cheshire.core :as json]
         '[com.rpl.specter :as sp]
         '[io.staticweb.cloudformation-templating :as ct])

(defn import-from-json [^String s]
  (let [m (json/parse-string s true)]
    (sp/transform (sp/walker ct/invalid-keyword?) ct/full-name m)))

About

A library for creating CloudFormation templates.

License:MIT License


Languages

Language:Clojure 95.6%Language:Nix 2.9%Language:Shell 1.5%