Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A template for AWS lambda function implementation in ruby

Notifications You must be signed in to change notification settings

gowda/aws-lambda.template.rb

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.