FieryCod / holy-lambda

The extraordinary simple, performant, and extensible custom AWS Lambda runtime for Clojure.
https://fierycod.github.io/holy-lambda
MIT License
340 stars 20 forks source link

[FEATURE] CDK support #57

Closed eoliphan closed 3 years ago

eoliphan commented 3 years ago

Would be nice to integrate with CDK projects, use holy-lambda for clojure goodness in lambdas, CDK to glue together larger app. There's beta SAM/CDK support here

FieryCod commented 3 years ago

@eoliphan HL can be easily integrated with CDK projects.

AWS SAM is used in HL only for deployment and local testing since AWS SAM does not know how to build the deployable artifacts (HL does).

Depending on the runtime HL spits artifact to different location at .holy-lambda which you can easily find ;)

Artifact build depending on the runtime

I think in that situation you can first experiment with HL and CDK and report back what you're missing. I'm eager to make CDK integration with HL easier when I know what is important for you and the users.

eoliphan commented 3 years ago

Ok great info, just started playing around with holy-lambda, so will update this as stuff comes up

FieryCod commented 3 years ago

@eoliphan Any progress? :)

FieryCod commented 3 years ago

@eoliphan Here is the working example: https://github.com/FieryCod/holy-lambda-azure-cdk-deployment

pfeodrippe commented 2 years ago

@eoliphan Here is the working example: https://github.com/FieryCod/holy-lambda-azure-cdk-deployment

@FieryCod is this example still valid? I am checking if I am able to use holy-lambda with CDK

Great project BTW \o/

FieryCod commented 2 years ago

holy-lambda for the long time works with any deployment tool. Pulumi, Terraform, CDK, AWS SAM you name it. This template is very old and uses the deprecated API. I would encourage you to create a new project via holy-lambda template using clj-new and then transform what is inside AWS SAM template.yml to CDK.