Our great sponsors
-
terraform-aws-lambda
Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations πΊπ¦
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You can find all the code in my repository here. However, I'll briefly describe how the repository was created. Initialize your cdktf repo with:
I use the Community Terraform Lambda Module to define the lambda. It allows me to define a lambda in just a few lines that are configured with a role and can also be easily extended with policies. The cool thing is that cdktf supports a type import. To do this, simply add the following module to the cdktf.json file:
Related posts
- Is Terraform Cloud's VCS to GitHub more beneficial than their API-Driven Workflow? An AWS Terraform Lambda Module's Code has me stumped!
- Lambda functions in terraform
- mutitple lambda functions in one deployment
- How on earth do you deploy AWS Lambdas?
- Turbocharge your Lambda Functions with AWS Lambda Powertools for Python