aws

dabrazhe 2025-05-07T08:13:35.887289Z

Hey, is there anything newer in CLJ for the AWS CDK than this abandoned library https://github.com/Stedi-Public-Archive/cdk-clj ?

2025-05-12T17:36:42.594799Z

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

cch1 2025-05-19T23:58:21.789659Z

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.

cch1 2025-05-20T00:00:05.334369Z

@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.

dabrazhe 2025-05-15T12:33:24.103809Z

I worked with Clouldformation before and it's a rather rigid way of defining infra that CDK offers, so I guess it's interop.

dabrazhe 2025-05-15T12:33:47.232959Z

Or using smth like Pulumi with java interop, again

raspasov 2025-05-15T17:04:23.045099Z

CloudFormation is basically all specified by JSON, if I’m not mistaken - is that correct?

👍 1
raspasov 2025-05-07T10:52:56.558429Z

This? https://github.com/cognitect-labs/aws-api

raspasov 2025-05-07T10:53:37.779679Z

Ah CDK… I don’t know

dabrazhe 2025-05-16T14:40:02.828399Z

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