- Add this inside
deps.edn
file.
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.11.1"}}
:aliases {:dev {:extra-paths ["cdk"]
:extra-deps {verybigthings/cdk-clj-templates {:git/url "https://github.com/verybigthings/cdk-clj-templates.git"
:sha "<LATEST SHA HERE>"}}}}}
- Create a CDK infrastructure file with the path
./cdk/cdk/entry.clj
.
(ns cdk.entry
(:require [verybigthings.cdk :as cdk]
[verybigthings.cdk-clj-templates.pasta-xiana.backend :refer [PastaXianaBackendStack]]))
(defn AppStack
[scope id props]
(let [stack (Stack scope id props)]
(Bucket stack "bucket" {:versioned true})))
(cdk/defapp exampleApp
[app]
(PastaXianaBackendStack app {:name "pasta-dev"
:region "us-east-1"
:account "22222222222"
:repo-name "pasta"
:db-name "dbname"
:subdomain "pasta"}))
- Create
cdk.json
in the root of your project with following:
{"app":"clojure -A:dev -M cdk/cdk/entry.clj"}
- Verify evertying works correctly
cdk ls
# should return `pasta-dev`
Contributors are welcome to submit issues, bug reports, and feature requests.
cdk-clj-templates is distributed under the Apache License, Version 2.0.
See LICENSE for more information.