Event driven code with Node.js + AWS Lambda
@jpizarrom
- AWS Lambda
- Demo
Demo: mercado publico
Elastic
build:
ci:
- npm install serverless@0.5.2
on_success:
- |
cat << EOF > admin.env
SERVERLESS_ADMIN_AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
SERVERLESS_ADMIN_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
EOF
- cat admin.env
- mkdir .aws
- touch .aws/credentials
- mkdir -p _meta/variables/
- |
cat << EOF > _meta/variables/s-variables-common_.json
{
"project": "$PROJECT"
}
EOF
- |
cat << EOF > _meta/variables/s-variables-$BRANCH.json
{
"stage": "$BRANCH"
}
EOF
- |
cat << EOF > _meta/variables/s-variables-$BRANCH-`echo $AWS_DEFAULT_REGION | sed -e 's/-//g'`.json
{
"region": "$AWS_DEFAULT_REGION",
"resourcesStackName": "$RESOURCES_STACK_NAME",
"iamRoleArnLambda": "$IAM_ROLE_ARN_LAMBDA"
}
EOF
- cd collector/download_list && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy collector-download_list -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd collector/download_detail && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy collector-download_detail -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd collector/list_stream_processor && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy collector-list_stream_processor -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd detector/detector && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy detector-detector -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd detector/detail_stream_processor && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy detector-detail_stream_processor -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd notificator/notificator && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy notificator-notificator -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- cd elastic/elastic && npm install && cd ../..
- HOME=$PWD ./node_modules/.bin/serverless function deploy elastic-elastic -s $BRANCH -r $AWS_DEFAULT_REGION --debug
- http://www.slideshare.net/AmazonWebServices/aws-lambda-eventdriven-code-in-the-cloud-53366393/13
- http://www.slideshare.net/AmazonWebServices/aws-lambda-eventdriven-code-in-the-cloud-53366393/19
- http://www.slideshare.net/apigee/serverless-computing-with-aws-lambda/14
- http://www.slideshare.net/AmazonWebServices/aws-lambda-and-the-serverless-cloud-popup-loft/8
- http://www.slideshare.net/AmazonWebServices/eventdriven-serverless-apps-popup-loft-tel-aviv/26
- http://www.slideshare.net/AmazonWebServices/aws-lambda-how-glide-uses-aws-lambda-for-increased-simplicity-scale-and-speed-popup-loft-tel-aviv/6
- http://www.slideshare.net/AmazonWebServices/bdt209-launch-amazon-elasticsearch-for-realtime-data-analytics/41
- https://codeship.com/documentation/continuous-deployment/deployment-to-aws-lambda/
- http://www.slideshare.net/AmazonWebServices/getting-started-with-serverless-architectures
- http://www.slideshare.net/AmazonWebServices/aws-march-2016-webinar-series-aws-iot-real-time-stream-processing-with-aws-lambda
Auth
Event driven code with Node.js + AWS Lambda
By Juan Pizarro
Event driven code with Node.js + AWS Lambda
- 1,190