Skip to content

CloudFormation Custom Resource can be leveraged to query AWS DynamoDB via an AWS Lambda function to retrieve the key value pairs, replacing the mappings and parameter sections and providing a more automated approach for managing template parameters.

License

Notifications You must be signed in to change notification settings

okachobi/custom-lookup-lambda

 
 

Repository files navigation

CUSTOM LOOKUP LAMBDA FUNCTION

The Python script , AWS Lambda function and AWS CloudFormation templates described queries Amazon DynamoDB table with the inputs from AWS CloudFormation to lookup the mappings.

For more details refer the blog here

Use virtualenv for Python execution

To prevent any problems with your system Python version conflicting with the application, virtualenv can be used.

Install Python: pip install python 2.7

Install virtualenv:

$ pip install virtualenv
$ virtualenv -p PATH_TO_YOUR_PYTHON_2.7 venv2
$ virtualenv ~/.virtualenvs/venv2
$ source ~/.virtualenvs/venv2/bin/activate
$ pip install awscli

About

CloudFormation Custom Resource can be leveraged to query AWS DynamoDB via an AWS Lambda function to retrieve the key value pairs, replacing the mappings and parameter sections and providing a more automated approach for managing template parameters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.1%
  • Shell 4.9%