AWS Lambda and Amazon API Gateway

Download AWS Lambda and Amazon API Gateway

Post on 22-Jan-2017

2.979 views

Category:

Technology

3 download

TRANSCRIPT

Lambda & API Gateway Amazon Web Services JapanShinpei Ohtani(ohtani@)EC2 RDS Docker ECS Lambda API Gateway DevOps AWS AWS AWS Less ops, more codeLambda API Gateway API Gateway LambdaAWS Lambda AWS AWSAWS Lambda AWS AWSAWS Lambda AWS AWSS3DynamoDBAWS Lambda OS 24365AWS Lambda S3AWS Lambda Amazon S3 Bucket 1 2 3 DynamoDBAWS Lambda Amazon DynamoDB Table and Stream S3DynamoDBS3DynamoDBAll you need is code.AWS LambdaLambda FireEyeAWS Lambda UpdatesVPC Support () VPCRDS, ElastiCache etc) LambdaVPC AWSIParn:aws:lambda:us-west-2:123456789012:function:PyFunc1:prodPython 2.7 LambdaPython2.7http://aws.typepad.com/aws_japan/2015/10/aws-lambda-update-python-vpc-increased-function-duration-scheduling-and-more.htmlAWS Lambda Updates 300Scheduled Events Lambda Cron 5 Amazon SES inbound mail Amazon CloudWatch Logs Amazon Connected Home (Preview) AWS IoTLambda API Gateway Amazon API GatewayAPIAPIAPIAPIAmazon API GatewayAPIAWS SigV4AWS LambdaAWS LambdaAmazon API GatewayCloudFrontDDoSiOSAndroidJavaScriptSDKSwaggerRequest / ResponseAPIAPIWeb DBLBLambdaAPI Gateway DynamoDBAmazon API GatewayAPIInternet Mobile Apps Websites Services API Gateway AWS Lambda functions AWS API Gateway Cache Endpoints on Amazon EC2 / Amazon Elastic Beanstalk Any other publicly accessible endpoint Amazon CloudWatch Monitoring API1. API2. 3. 4. 5. 300API API API URL ex) /pets/{petId} HTTP 7HTTPPet Store /pets /pets/{petId} GET POST PUT API API URI :Dev (e.g. awsapigateway.com/dev)Beta (e.g. awsapigateway.com/beta)Prod (e.g. awsapigateway.com/prod)Pet Store dev beta gamma prod API GatewayLambdaMicroservicesCloud glueExternal interface wrapperA B C Cloud Servlet container without EC2Sync invocation Async invocation msec Node/Java/Python PC APIfy(API)EC2 Beanstalk API Gateway Lambda M2M interfaceAPI API Gateway x Lambda API Gateway x LambdaAWS API Gateway API AmazonAPI Lambda Lambda hackconsole.log('Loading function');exports.handler = function(event, context) { var child_process = require('child_process'); child_process.exec("ls -latr /var/runtime/node_modules/awslambda/bin/", function(err, stdout, stderr) { if (!err) { console.log(stdout); console.log(stderr); } else { console.log(err); } context.done(); }); };

Recommended

View more >