Name | Use | Default | Global | Type | Allowed Values |
---|---|---|---|---|---|
EnvironmentName | Tagging | dev | true | string | |
EnvironmentType | Tagging | development | true | string | ['development','production'] |
VPCId | Security Groups | None | false | AWS::EC2::VPC::Id |
Name | Value | Exported |
---|---|---|
{function_name}SecurityGroup | The security group created for the function | true |
Component name: 'lambda', template: 'lambda'
functions:
app1:
handler: handler.lambda_handler
runtime: python3.6
code_uri: app1/src.zip
timeout: 30
environment:
Environment: dev
policies:
logs:
action:
- logs:PutLogEvents
- logs:DescribeLogStreams
- logs:DescribeLogGroups
resource:
- '*'
enable_eni: true
log_retention: 7
events:
cron:
type: schedule
expression: cron(0 12 * * ? *)
payload: "{ 'a': 1, 'b': 2 }"
trigger:
type: sns
install cfhighlander gem
gem install cfhighlander
or via docker
docker pull theonestack/cfhighlander
Running the tests
cfhighlander cftest lambda