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

Introduction to AWS App Runner

mats
June 10, 2021

Introduction to AWS App Runner

mats

June 10, 2021
Tweet

More Decks by mats

Other Decks in Technology

Transcript

  1. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    Kazuki Matsuda @mats16k
    Amazon Web Service Japan K.K
    AWS App Runner は
    間にスペースが⼊ります

    View Slide

  2. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    正しいのは?
    1.AWS App Config
    2.AWS App Sync
    3.AWS App Mesh
    4.Amazon App Flow
    5.Amazon App Stream 2.0

    View Slide

  3. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    正しいのは?
    1.AWS AppConfig
    2.AWS AppSync
    3.AWS App Mesh
    4.Amazon AppFlow
    5.Amazon AppStream 2.0

    View Slide

  4. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    Kazuki Matsuda @mats16k
    Amazon Web Service Japan K.K
    スタートアップにおすすめしたい
    AWS App Runner の話

    View Slide

  5. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    アジェンダ
    お客様がかかえる課題
    App Runner の概要
    App Runner の料⾦体系
    App Runner まとめ

    View Slide

  6. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    スタートアップが AWS を採⽤する理由
    イノベーション スケーラビリティ セキュリティ
    素早くシームレスに
    スケール
    セキュアな設計
    インフラ構築ではなく
    プロダクト開発に集中

    View Slide

  7. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    多様なサービスを組み合わせてクラウドインフラストラクチャを構成
    AWS Fargate
    Amazon ECS
    Elastic Load Balancing
    AWS Auto Scaling
    AWS CodeBuild
    フロントエンドアプリケーション
    バックエンドアプリケーション

    View Slide

  8. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    ビジネスの成⻑にはプラットフォームの移⾏がつきもの
    プラットフォームの移⾏
    プラットフォームの移⾏
    2.0 リリース
    1.0 MVP
    3.0 成⻑

    View Slide

  9. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    お客様から頂いた要望
    1. AWS やコンテナの専⾨知識が不要
    素早く本番環境に展開したい
    2. 最初からスケーラブル
    re-platform せずに運⽤したい
    3. フルマネージドなインフラストラクチャ
    プロダクト開発に集中したい 1.0 MVP
    2.0 リリース
    3.0 成⻑

    View Slide

  10. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    Web アプリケーションのためのフルマネージドサービス
    AWS Fargate
    Amazon ECS
    Elastic Load Balancing
    AWS Auto Scaling
    AWS CodeBuild
    フロントエンドアプリケーション
    バックエンドアプリケーション

    View Slide

  11. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    AWS App Runner
    Web アプリケーションのためのフルマネージドサービス
    フロントエンドアプリケーション
    バックエンドアプリケーション

    View Slide

  12. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    App Runner のアーキテクチャ
    AWS App Runner
    お客様のアプリケーション
    フロントエンド API
    オーケストレーションワークフロー
    ビルド
    (CodeBuild)
    ホスティング
    (Fargate, VPC)
    ロードバランサー / ヘルスチェック
    (Envoy)
    カスタムドメイン
    (NLB)
    オートスケール
    (Request-based)
    CI/CD
    (Webhook, CloudWatch Events)
    安全なデプロイ
    (Blue-Green)
    実⾏環境へのパッチ適⽤
    (ECR)
    ホストマシンへのパッチ適⽤
    (Fargate)
    Deployment & Application Logs
    (CloudWatch Logs)
    メトリクス
    (CloudWatch Metrics)
    暗号化
    (KMS)
    App Runner によりお客様が管理しなくてよくなるもの
    ECR Public/Private (Docker Image) GitHub (Application Code)

    View Slide

  13. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    AWS App Runner
    ⼤規模な Web アプリケーションを素早く本番環境に展開
    ネットワーク、サーバー、
    デプロイパイプライン、
    コンテナオーケストレーション
    ツールの管理が不要
    コンテナレジストリ、または
    Git リポジトリから直接デプロイ
    リクエスト数に応じた
    秒単位での課⾦体系

    View Slide

  14. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    柔軟なアプリケーションのビルドとデプロイ
    ソースコード
    リポジトリ
    既存ツールを⽤いた
    コンテナイメージのビルド
    コンテナイメージを
    ECR にプッシュ
    開発チーム
    App Runner による
    アプリケーションのビルドを
    ⾃動実⾏
    アプリケーションの
    デプロイ
    or
    AWS Copilot CLI からのデプロイも可能

    View Slide

  15. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    料⾦体系
    AWS App Runner
    料金体系
    インスタンスサイズを指定 オートスケールの設定
    (オプション)
    実⾏したインスタンス
    に対してお⽀払い
    サービスの
    パフォーマンスを評価
    インスタンスの vCPU と
    メモリサイズを指定
    トラフィック量に応じてスケール
    するインスタンスのしきい値を指定
    課⾦はトラフィック量に応じて
    スケールするインスタンスに
    対して発⽣。トラフィックが
    ない場合はプロビジョニング
    インスタンスのみ課⾦が発⽣。
    サービスのパフォーマンスを
    計測、評価し、適切なオート
    スケールのしきい値に調整

    View Slide

  16. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    料⾦の例

    View Slide

  17. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    AWS App Runner まとめ
    1. AWS の専⾨知識や経験がなくても Web アプリケーション、
    モバイル⽤バックエンド、API サービスを数クリックで
    実⾏できる
    2. ソースコードまたはコンテナイメージを⽤意することで
    App Runner がコンテナイメージのビルド、デプロイ、
    ロードバランサーのセットアップと管理、暗号化、
    トラフィックに応じたオートスケールを実⾏します
    3. リクエスト数に応じてスケールするインスタンス数に対して
    秒単位での課⾦

    View Slide

  18. © 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    Q&A
    Happy running!

    View Slide