Slide 1

Slide 1 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Web Services Startup ML Solutions Architect Yoshitaka Haribara, Ph.D. AWS Copilot で幸せアプリ開発 AWS Copilot を使用し AWS でコンテナアプリケーションの構築、リリース、運用

Slide 2

Slide 2 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 自己紹介とアジェンダ 今日話すこと AWS Copilot とは? 何が便利か︖ 針原 佳貴 (はりばら よしたか) スタートアップ ソリューションアーキテクト @_hariby

Slide 3

Slide 3 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Copilot とは?

Slide 4

Slide 4 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. テスト コード コンテナ

Slide 5

Slide 5 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリの開発 コード ? Amazon ECS サービスのセットアップ方 法はどうすればいいか。

Slide 6

Slide 6 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリの開発 サービスのセットアップ方 法はどうすればいいか。 どのようなインフラストラクチャ が必要か? データベースを追加するに はどうすればよいか? チームでサービスを開発する にはどうしたらいいか? サービスを追加および管理 するにはどうすればよいか? これらのサービスをデプロイする 方法は? 何か問題があるときはどうすれば いいか? prodに影響を与えずにテストする にはどうすればよいか? サービスを拡張するにはどうす ればよいか?

Slide 7

Slide 7 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリの開発 ビルド、リリース、運用 どうやって...

Slide 8

Slide 8 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Copilot

Slide 9

Slide 9 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ビルド、リリース、運用

Slide 10

Slide 10 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ビルド

Slide 11

Slide 11 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する サービスのセットアップ 方法はどうすればいいか。 どのようなインフラストラクチャ が必要か? インフラストラクチャではなく、 アーキテクチャの観点から考える

Slide 12

Slide 12 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する • VPC • サブネット • セキュリティグループ • ECS クラスタ • ECS サービス • Fargate タスク • サービスディスカバリ • ECR リポジトリ • Application Load Balancer • ACM 証明書

Slide 13

Slide 13 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する サービスを追加および管理 するにはどうすればよいか? チームでサービスを開発するには どうしたらいいか? 1つのアプリケーション、 多くのサービス。

Slide 14

Slide 14 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する サービスを追加および管理 するにはどうすればよいか? チームでサービスを開発するには どうしたらいいか? Website LoadBalancedWebService AdminPortal LoadBalancedWebService Worker BackendService TheNextBigThingApp

Slide 15

Slide 15 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する ビルトインの サービスディスカバリ worker.thenextbigthing.local Website LoadBalancedWebService AdminPortal LoadBalancedWebService Worker BackendService TheNextBigThingApp

Slide 16

Slide 16 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する 1人、または多数のチーム フロントエンドチーム ツールチーム バックエンドチーム Website LoadBalancedWebService AdminPortal LoadBalancedWebService Worker BackendService TheNextBigThingApp

Slide 17

Slide 17 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する ? データベースを追加する にはどうすればよいか? Website LoadBalancedWebService AdminPortal LoadBalancedWebService Worker BackendService Database BackendService TheNextBigThingApp

Slide 18

Slide 18 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを構築する データベースを追加する にはどうすればよいか? DynamoDB RDS (予定) S3

Slide 19

Slide 19 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ビルド

Slide 20

Slide 20 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. リリース

Slide 21

Slide 21 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリのリリース prodに影響を与えずにテストするには どうすればよいか? us-west-2/devアカウント フロントエ ンド バックエン ド テスト環境 フロントエ ンド バックエン ド 本番環境 ap-northeast-1/prodアカウント

Slide 22

Slide 22 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリのリリース これらのサービスをすべてデプロイする方法は?

Slide 23

Slide 23 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ソース ビルド テスト 本番 アプリのリリース これらのサービスをすべてデプロイする方法は? ソースリポジトリ にプッシュ AWS CodeBuild: サービスイメージの ビルドとプッシュ ECS: テスト環境に サービスをデプロイ ECS: 本番環境への イメージのデプロイ

Slide 24

Slide 24 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリのリリース 継続的デリバリー は、 簡単であるべき。

Slide 25

Slide 25 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリのリリース

Slide 26

Slide 26 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. リリース

Slide 27

Slide 27 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 運用

Slide 28

Slide 28 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを操作する サービスに何か問題があるときは どうすればいいか?

Slide 29

Slide 29 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アプリを操作する サービスのコンフィギュレーションは どうすればよいか? 更新 & デプロイ

Slide 30

Slide 30 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 運用

Slide 31

Slide 31 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 関連 URL • AWS Copilot CLI (preview) • https://github.com/aws/copilot-cli • AWS Copilot のご紹介 • https://aws.amazon.com/jp/blogs/news/introducing-aws-copilot/ • AWS Copilot によるコンテナアプリケーションの自動デプロイ • https://aws.amazon.com/jp/blogs/news/automatically-deploying- your-container-application-with-aws-copilot/

Slide 32

Slide 32 text

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ありがとうございました! @_hariby