Hey, is there anything newer in CLJ for the AWS CDK than this abandoned library https://github.com/Stedi-Public-Archive/cdk-clj ?
I just went down this rabbit hole hoping there would be something. I've seen some example code out there using clojurescript interop for the cdk but that's about it. You could use the Java interop very easily but the CDK uses JSII so you'd lose all of the nice things only available in TypeScript. I've written little wrappers around CloudFormation itself which I've begun to think is really the way to approach this stuff from Clojure. CloudFormation provides a JSON schema that is easily worked with from Clojure, and you can get a ton of examples and information about that schema and how it's used in the cloudformation-cli tool. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html https://github.com/aws-cloudformation/cloudformation-cli/blob/master/src/rpdk/core/data/schema/base.definition.schema.v1.json
I have written a library (macmcfu) that wraps the Java implementation of the CDK. The design is tightly focused on a transliteration of EDN -> CDK/CF. I've written modules for only a fraction of the functionality of the CDK, but it's nice being able to start with data (EDN) when producing data (CF template). I suppose that is not really the intent of the CDK, but this is Clojure and data rules.
@dennisa, if you are interested I could perhaps open up the GH repo. It's well suited to pull requests adding functionality -something that is inevitable with the sprawl of the CDK.
I worked with Clouldformation before and it's a rather rigid way of defining infra that CDK offers, so I guess it's interop.
Or using smth like Pulumi with java interop, again
CloudFormation is basically all specified by JSON, if I’m not mistaken - is that correct?
Ah CDK… I don’t know
YAML, but the principle is the same. You can make it parametrised but it does not have a flow logic, loops etc. That's where more high-level IoC frameworks come in, hence peoples interest in CDK