tools for working with 'rich' client applications
Last updated 2 years ago by efleming969 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lymph-devtools 
SYNC missed versions from official npm registry.

Lymph DevTools

Utilities for working with "rich" client applications.

Build Server Setup


sudo yum update
sudo yum install git python2-pip docker
aws configure
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo systemctl enable docker

pip install --user boto3 docker

API Gateway and Lambda Notes

In order to associate API Gateway stages to a specific lambda function and an alias, one can use "stage variables". These are variables that can be configured per deployment stage and allow you to dynamically pick a function-name, version, or event an alias. They are configured in the method execution section of the API Method, under "integration request". Set the function-name value to something like: lambda-function-name:${stageVariables.alias}.

Samples of creating an alias for a newly created lambda function, plus providing the necessary permission to the api gateway resource




aws lambda create-alias --function-name $FUNCTION_NAME --name staging --function-version '$LATEST'

aws lambda add-permission \
    --function-name arn:aws:lambda:us-east-1:535016723572:function:$FUNCTION_NAME:staging \
    --source-arn 'arn:aws:execute-api:us-east-1:535016723572:2ckdx83ybg/*/GET/hello/*' \
    --principal \
    --statement-id $(uuidgen) \
    --action lambda:InvokeFunction

aws lambda publish-version --function-name $FUNCTION_NAME --description 'initial version'

aws lambda add-permission \
    --function-name arn:aws:lambda:us-east-1:535016723572:function:$FUNCTION_NAME:production \
    --source-arn 'arn:aws:execute-api:us-east-1:535016723572:2ckdx83ybg/*/GET/hello/*' \
    --principal \
    --statement-id $(uuidgen) \
    --action lambda:InvokeFunction

Publishing new version and promoting to production


    aws lambda publish-version --function-name $FUNCTION_NAME --description 'some version info' \
  | jq --raw-output '.Version')

aws lambda update-alias --function-name $FUNCTION_NAME --name production --function-version $NEW_VERSION 

Update lambda code with published package

aws lambda update-function-code --function-name $FUNCTION_NAME \
    --s3-bukcet braintrustops \
    --s3-key $

Create a lambda function


aws lambda create-function --function-name "$FUNCTION_NAME" \
    --runtime 'nodejs6.10' \
    --role 'arn:aws:iam::535016723572:role/braintrustops' \
    --handler "$NAMESPACE/$MODULE_NAME.handler" \
    --code "S3Bucket=$NAMESPACE-artifacts,S3Key=$" 


  • create build system that can automatically run in CI tool, like Bitbucket Pipelines


These are notes on using CloudFormation to create resource for the application

Creating Stacks

  • when creating a stack you may need to provide a list of capabilities for certain types of resource creation
  • in order to create a stack, an authorized identity is required



Current Tags

  • 0.17.0                                ...           latest (2 years ago)

6 Versions

  • 0.17.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 2
Last Month 6
Dependencies (22)
Dev Dependencies (11)
Dependents (0)

Copyright 2014 - 2016 © |