No project description provided
Project description
Abstracts the more mundane aspects of lambda resources
A lot of boilerplate code is required to implemented lambda’s for AWS Config and custom Cloudformation resources. We can abstract this away and wrap our rule in data structures to improve development and encourage a particular structure.
Installation
$ pip install awslambdahelper
QuickStart
Create a Python class
# my_lambda_code.py
from awslambdahelper import AWSConfigRule
class MyConfigRule(AWSConfigRule):
def find_violation_config_change(self, config, rule_parameters):
return [NonCompliantEvaluation(
Annotation="This failed because it is only a demo."
)]
Setup AWS Lambda handler
>>> import boto3
>>> boto3.client('lambda').create_function(
Handler = "my_lambda_code.MyConfigRule.handler'
)
Create AWS Config Rule
Getting Started with Custom Rules.
That’s it! For a more indepth guide, read the docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awslambdahelper-1.1.9.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for awslambdahelper-1.1.9-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c519dc166e36debd42e8e74038fefbce78d70440ba99a17794340349435998ad |
|
MD5 | 89a2a5962e1b7d624f5a0e1d40a6e43e |
|
BLAKE2b-256 | 296957262cf745e513788be6334a9c430d21d80b435fca3e05e14bf7f8701b4f |