© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Web Services Japan K.K.
Takayuki Shimizu, Solutions Architect
2017. 9. 21
AWS Cloud Roadshow 2017
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda Amazon DynamoDB
Amazon SNS
Amazon API Gateway
Amazon SQS
Amazon Kinesis
Amazon S3
Orchestration and State Management
API Proxy Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions
Edge Compute
AWS Greengrass
Lambda@Edge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
•
•
•
</></>
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
/books GET
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
</>
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$ aws cloudformation pakage
•
•
•
$ aws cloudformation deploy
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://github.com/awslabs/serverless-application-model/tree/master/examples/2016-10-31
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$ git clone https://github.com/awslabs/aws-serverless-express
$ cd aws-serverless-express/example
$ ls -1
README.md
api-gateway-event.json
app.js
app.local.js
cloudformation.yaml
lambda.jspackage.json
sam-logo.png
scripts
simple-proxy-api.yaml
vanilla-server.js
views
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$ npm run config -- --account-id="<accountId>" 
--bucket-name="<bucketName>" 
[--region="<region>" --function-name="<functionName>"]
$ npm run setup
(snip) Successfully created/updated stack – AwsServerlessExpressStack
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
$ curl https://avcitqw9p6.execute-api.us-east-1.amazonaws.com/prod/users -H 
'accept: application/json'
[{"id":1,"name":"Joe"},{"id":2,"name":"Jane"}]
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GET https://(snip)/sam
$ curl -Iso /dev/null https://avcitqw9p6.execute-api.us-east-1.amazonaws.com/prod 
-w '%{content_type}'
text/html; charset=utf-8
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
</>
AWS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
•
•
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Going Serverless !
Thank you

サーバレスアプリケーションの入門と実践 - AWS Cloud Roadshow 2017 Osaka

  • 1.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon Web Services Japan K.K. Takayuki Shimizu, Solutions Architect 2017. 9. 21 AWS Cloud Roadshow 2017
  • 2.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 3.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 4.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 5.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 6.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • •
  • 7.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 8.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 9.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 10.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 Orchestration and State Management API Proxy Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Edge Compute AWS Greengrass Lambda@Edge
  • 11.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 12.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 13.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • • • • • • </></> • • • •
  • 14.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 15.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 16.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. /books GET
  • 17.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 18.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 19.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 20.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 21.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 22.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 23.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 24.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 25.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 26.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 27.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 28.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 29.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 30.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • •
  • 31.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • • • •
  • 32.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 33.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 34.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 35.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 36.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 37.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 38.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 39.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 40.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. </>
  • 41.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. $ aws cloudformation pakage • • • $ aws cloudformation deploy • •
  • 42.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 43.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 44.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. https://github.com/awslabs/serverless-application-model/tree/master/examples/2016-10-31
  • 45.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 46.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 47.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • •
  • 48.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 49.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. $ git clone https://github.com/awslabs/aws-serverless-express $ cd aws-serverless-express/example $ ls -1 README.md api-gateway-event.json app.js app.local.js cloudformation.yaml lambda.jspackage.json sam-logo.png scripts simple-proxy-api.yaml vanilla-server.js views
  • 50.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. $ npm run config -- --account-id="<accountId>" --bucket-name="<bucketName>" [--region="<region>" --function-name="<functionName>"] $ npm run setup (snip) Successfully created/updated stack – AwsServerlessExpressStack
  • 51.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. $ curl https://avcitqw9p6.execute-api.us-east-1.amazonaws.com/prod/users -H 'accept: application/json' [{"id":1,"name":"Joe"},{"id":2,"name":"Jane"}]
  • 52.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. GET https://(snip)/sam $ curl -Iso /dev/null https://avcitqw9p6.execute-api.us-east-1.amazonaws.com/prod -w '%{content_type}' text/html; charset=utf-8
  • 53.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 54.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 55.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 56.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. </> AWS
  • 57.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 58.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 59.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 60.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 61.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 62.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 63.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • •
  • 64.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • • • • •
  • 65.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • • • •
  • 66.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 67.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 68.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • • • • • • • • •
  • 69.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Going Serverless ! Thank you