An open API service indexing awesome lists of open source software.

https://github.com/staticweb-io/cloudformation-templating

A library for creating CloudFormation templates.
https://github.com/staticweb-io/cloudformation-templating

aws clojure cloudformation

Last synced: 8 months ago
JSON representation

A library for creating CloudFormation templates.

Awesome Lists containing this project

README

          

# cloudformation-templating

[![Clojars Project](https://img.shields.io/clojars/v/io.staticweb/cloudformation-templating.svg)](https://clojars.org/io.staticweb/cloudformation-templating)
[![CljDoc Badge](https://cljdoc.org/badge/io.staticweb/cloudformation-templating)](https://cljdoc.org/d/io.staticweb/cloudformation-templating)

A library for creating CloudFormation templates.

## Importing existing templates

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

```clojure
(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)))
```