Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iPhoneアプリのバックエンドとしてServerless Framework使ってみた

mackato
August 28, 2016

iPhoneアプリのバックエンドとしてServerless Framework使ってみた

JAWS-UG 東海道 in 浜松 2016で発表した資料です

mackato

August 28, 2016
Tweet

More Decks by mackato

Other Decks in Programming

Transcript

  1. Why Serverless Architecture? • ओͳॲཧ͸ΞϓϦଆɺόοΫΤϯυ͸ิॿతʹ࢖༻ • ߴ͍ηΩϡϦςΟ͕୲อͰ͖ͦ͏ • ػີ৘ใ͸LambdaͷϝϞϦ಺ͷΈͰऔΓѻ͏ •

    CloudTrailɺCloudWatchΛར༻ͨ͠؂ࠪɾ؂ࢹ • εϞʔϧελʔτͰ͖ͯεέʔϧͦ͠͏ • αʔόʔߏஙෆཁͰϦϦʔεָ͕ͦ͏
  2. What is Serverless Framework? Build web, mobile and IoT applications

    with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! • Manages the lifecycle of your serverless architecture (build, deploy, update, delete). • Safely deploy functions, events and their required resources. • Functions can be grouped ("serverless services") for easy management of code, resources & processes.
  3. AWSαʔϏεͷར༻ঢ়گ • API Gateway Endpoint: 5 • Lambda Function: 8

    • DynamoDB Table: 2 • CloudWatch Event: 3 • 2016೥8݄ͷ༧૝՝ֹۚ: $1ఔ౓
  4. ղܾࡦ ϦϦʔε༻ͷεΫϦϓτΛॻ͍ͨ by @kengos $ ./release.py --help usage: release.py [-h]

    -s STAGE [-r REGION] [-t TAG] [-b BRANCH] [--tmpdir TMPDIR] [--skip-deploy] [--debug]
  5. ϦϦʔεखॱ $ git flow release start v1.0.1 $ git flow

    relaese publish v1.0.1 $ ./release.py -s beta -b v1.0.1 ~~ BetaϏϧυΛTestFlightͰ഑෍ͯ͠ಈ࡞֬ೝ ~~ $ git flow release finish v1.0.1 $ ./release.py -s prod -t v1.0.1 # ΞϓϦ1.0.0΋ࢀর ~~ v1.0.1ͷReleaseϏϧυΛAppStoreʹొ࿥ ~~