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.
- Host: GitHub
- URL: https://github.com/staticweb-io/cloudformation-templating
- Owner: staticweb-io
- License: mit
- Created: 2021-05-10T01:45:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-17T20:32:42.000Z (9 months ago)
- Last Synced: 2025-04-18T09:44:09.248Z (9 months ago)
- Topics: aws, clojure, cloudformation
- Language: Clojure
- Homepage:
- Size: 64.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudformation-templating
[](https://clojars.org/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)))
```