Pass environment variables to lambda function deployed with AWS CDK

There are cases that we need to deal with passing information inside lambda function using environment variables.

Here I am giving an example with CDK python which passes environment variable to a lambda and use those environment variables value inside the lambda.

base_lambda = lb.Function(self, 'base_lambda',
code =…

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

kubernetes storage 101

How to remove Export Task ID from the key name of the log exported with CreateExportTask API in…

Exploring Custom Radio Button In Flutter

Public Cloud vs Private Cloud — Cost Tipping Points | InMotion Hosting

Failure is not a badge of honour

Building a more useful & sustainable Secure Data Kit in Q3

How to add your project to GitHub?

Build a complete CI/CD Pipeline and its infrastructure with AWS — Jenkins — Bitbucket — Docker —…

Technologies used: Terraform, Bitbucket, Docker, AWS, Jenkins

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Madeesha’s Tech Space

Madeesha’s Tech Space

DevOps Engineer

More from Medium

Developing PostgreSQL Extensions to Support Your Own Data Types

Overcome the 10K query limit of AWS Open-search index in Python

AWS Lambda in Python, Convert Excel Data to JSON and Batch Upsert to DynamoDB

Lambda Function in Python