项目作者: staticweb-io

项目描述 :
A library for creating CloudFormation templates.
高级语言: Clojure
项目地址: git://github.com/staticweb-io/cloudformation-templating.git
创建时间: 2021-05-10T01:45:30Z
项目社区:https://github.com/staticweb-io/cloudformation-templating

开源协议:MIT License

下载


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:

  1. (require '[cheshire.core :as json]
  2. '[com.rpl.specter :as sp]
  3. '[io.staticweb.cloudformation-templating :as ct])
  4. (defn import-from-json [^String s]
  5. (let [m (json/parse-string s true)]
  6. (sp/transform (sp/walker ct/invalid-keyword?) ct/full-name m)))