Skip to content

A template for AWS lambda function implementation in ruby

Notifications You must be signed in to change notification settings

gowda/aws-lambda.template.rb

Repository files navigation

aws-lambda.template

A template for AWS lambda function implementation in ruby

Build deployable zip file

Generate aws-lambda-function.zip using:

$ bin/build

Using cloudformation template

Set environment variables:

  • NAME - name of lambda function
  • AWS_CODE_BUCKET - name of S3 bucket for storing code
  • AWS_CODE_OBJECT_KEY - key for S3 object

Create lambda function:

$ aws cloudformation create-stack \
    --stack-name $NAME \
    --template-body cloudformation/lambda.template \
    --capabilities CAPABILITY_NAMED_IAM \
    --parameters \
      ParameterKey='Name',ParameterValue=$NAME \
      ParameterKey='CodeBucket',ParameterValue=$AWS_CODE_BUCKET \
      ParameterKey='CodeObjectKey',ParameterValue=$AWS_CODE_OBJECT_KEY

About

A template for AWS lambda function implementation in ruby

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published