| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is an example project for CDK development with Clojure.
The `cdk.json` file tells the CDK Toolkit how to execute your app.
This example systhesises an SQS Queue and an SNS Topic and adds a subscription for the topic
Integrant is the main tool behind this setup, it manages the dependencies between resources and stacks, by using a simple configuration map {}
CDK Java depends on software.amazon.awscdk.App instance and related software.amazon.awscdk.Stack instances
Integrant is used to manage the dependencies between them. The following is the configuration used by the integrant system.
(def config
{:app/instance {}
:stacks/topic {:app (ig/ref :app/instance)
:stack-id "TopicStack"}
:stacks/storage {:app (ig/ref :app/instance)
:stack-id "StorageStack"}
:app/synth {:app (ig/ref :app/instance)
:stacks [(ig/ref :stacks/topic)
(ig/ref :stacks/storage)]}})You can define more stacks and add them to the :stacks vector in :app/synth
Refer CDK Java documentation for more.
Enjoy!
Copyright © 2023 Deepu Mohan Puthrote
Distributed under the MIT License.
| Back | FazBrowse Home | New Git URL |