Weitere ähnliche Inhalte
Ähnlich wie 2019年9月18日開催AWS Japan × Atlassianセミナー_セッション2「AmazonカルチャーとDevOps」 (20)
Kürzlich hochgeladen (11)
2019年9月18日開催AWS Japan × Atlassianセミナー_セッション2「AmazonカルチャーとDevOps」
- 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Akihiro Yagasaki
Partner Solutions Architect
Amazon Web Services Japan
2019年9月18日
AmazonカルチャーとDevOps
DX を加速するDevOps ー 理解と実践
- 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps の必要性とは
- 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
企業には俊敏性、スピードが必要
- 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ソフトウェアを取り巻く環境の変化
ソフトウェアの作成と配布はかつてない
ほど⾼速になっている
• クラウド活用によって少ない資金でスタートアップ
が巨⼤企業に対抗できる
• ダウンロードひとつで数百万⼈のユーザーにすぐに
ソフトウェアを配布できる
• 顧客の要求に応えるためには俊敏性が最も重要
• エンタープライズ企業でもスタートアップのアジリ
ティが必要
- 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
かつてのソフトウェア配布モデル
ソフトウェア配布モデルは⼤きく様変わりしている
新しいソフトウェア配布モデル
- 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VoC (Voice of Customer)から
アイデアをいち早く形にし
て素早く市場に投入するた
めには IT が従来のような
オーバーヘッドがかかって
いては話しにならない
時代の要請 -ビッグバン・ディスラプション
商品開発の劇的な高速化
従来の顧客採用プロセスが極端に圧縮傾向に
瞬時に広まり瞬時に衰退
https://hbr.org/2013/03/big-bang-disruption
- 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
現⾏システムを維持する
コストを削減する
今⽇のIT の⼤きなゴール
イノベーションを推進し、
ビジネスを変⾰する
- 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
達成しようと取り組んでいるものは
インフラストラクチャ
サポート
イノベー
ション
インフラストラクチャ
サポート
イノベー
ション
イノベーション
サポート
- 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
数値⽬標
30x
デプロイ頻度を向上
440x
リードタイムを短縮
60x
障害を削減
-21%
想定外のやりなおしを削減
44%
新しい作業に取り組む
ことができた
出典: Puppet State of DevOps Report 2017
- 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS のイノベーションのペース
2018 年に 1957 個の
新しい機能/サービス
をリリース
AWS は、あらゆるクラウドワーク
ロードをサポートするためにサービ
スを継続的に拡⼤している。
AWS は2018年⼀年間で1957 個の
新しい機能/サービスをリリースして
いる
その年にリリースされた機能改善、新機能、サービスの数
- 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
どうやって実現する?
- 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon が実⾏した⽅法
- 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps成功の3つの要素
Culture
PracticesTools
- 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps要素のコンビネーション
⽂化
Culture
実践
Practice
ツール
Tools
これにより
組織が アプリケーションやサービスを
迅速にリリースできるようにする
- 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
具体例 - Culture
• 壁を取り払う
• Dev-Opsチーム間 / 中間プロセス
• 所有権と説明責任をチームに
• 個人に対する責任は小さく
• 素早く動ける小さなチーム
• 常に改善をして高みを目指し、Howに
は柔軟さを残す
⽂化
Culture
実践
Practice
ツール
Tools
- 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
具体例 - Practice
• Agile開発プロセス
• 継続的インテグレーション (CI)
• テストとQAはコミットごとに常に行う
• 継続的デリバリ (CD)
• コードの自動ビルドとデプロイ
• Infrastructure as Code
• インフラをコードで管理する
• 無停止のアプリケーションリリース
• セルフサービス
• 調達ブロッカの除去
• 運用やセキュリティ対応の自動化
• すべての可視化
⽂化
Culture
実践
Practice
ツール
Tools
- 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
具体例 - Tools
• クラウド
• 自動化とCI/CDのためのツール
• ソースコード管理ツール
• テストフレームワーク/ツール
• コードレビュー/フィードバック
• コード静的解析
• パイプライン管理ツール
• デプロイツール
• Infrastructure Management
• モニタリングツール
• 業務メトリクス / アプリメトリクス /
インフラメトリクス / ログ / 性能
• セキュリティ分析ツール
⽂化
Culture
実践
Practice
ツール
Tools
- 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazonにおける開発を振り返る
- 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
.....2001 年ごろ - モノリス
- 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
モノリシックなアプリケーションの開発プロセス
開発者
releasetestbuild
デリバリパイプラインアプリ
- 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ニーズの変化:
俊敏性を取り戻す?
どうやって実現する?
- 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
プロセスを識別し、細かなユニットに分解
配送
ラベル付け
カート
購⼊
在庫
検索
出品
各ユニットを⼩規模チームが担当
- 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
組織の変更
“Two-pizza teams”
Agileなチーム
サービスに関する全ての責任
開発も運用もチームで対応
- 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
プロセス: 商品を棚に保管
マイクロサービス
(ソフトウェア)
構築 利⽤
開発チーム
各チームがスタートアップとして運営
結果: 強⼒な顧客第⼀主義、オーナーシップ、
イノベーションに対する⾃由、俊敏性
- 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Microserviceアーキテクチャの開発プロセス
開発者 デリバリパイプラインサービス
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
- 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
専任のシングルスレッド化されたチームでフローを最適化
専任の商品担当チーム
商品開発
商品化
商品マネージャー
プロジェクトマネージャー
開発者
テスト担当者
インフラ担当者
運営とサポート
商品チーム B
商品チーム A
商品チーム C
バックログ A
• ストーリー 1
• ストーリー 2
• ストーリー 3
• ストーリー 4
バックログ A
• ストーリー 1
• ストーリー 2
• ストーリー 3
• ストーリー 4
バックログ A
• ストーリー 1
• ストーリー 2
• ストーリー 3
• ストーリー 4
- 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
スクラムロール例
スクラムマスター、開発者、プロダクトオーナー
チームにアジャイルな⽅法論を適⽤
スクラムボード例
- 28. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
組織内の “サイロ” 化が勢いを無くす要因
オペレーション
データベース
チーム
品質保証
アプリケーション
セキュリティ
ソフトウェア
開発チーム
“開発環境のセットアップを
待機するため作業を中断"
“新しいテーブルや SQL スクリプトを
待機するため作業を中断"
“パフォーマンステストを
待機するために作業を中断"
“ ソースコードの⼿動検査を
待機するため作業を中断 "
“データベースセキュリティの承認待機するため作業を中断"
“セキュリティテストの完了を
待機するため作業を中断"
“セキュリティ証明書の作成を
待機するため作業を中断"
“データベースホストのセットアップを
待機するため作業を中断"
“新しいテストのホストを待機するために作業を中断 ”
- 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
チームは共働を学んだ (DevOps)
オペレーション
データベー
ス管理者
品質保証
(テスト担当者)
アプリケーション
セキュリティ
ソフトウェア開発
チーム
“共働"
- 30. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Two-pizza teamsは以下のことを学んだ
• アプリケーションとインフラストラクチャのコードを実装する
• 他のメンバーのコードをレビューする
• ユニット/統合/パフォーマンステストを実装する
• SQL クエリを作成する
• CI/CD パイプラインを作成し⾃動化する
• テスト⽤と本稼動⽤のホストをプロビジョニングする
• 安全な API を使い、セキュリティポリシーを適⽤する
• 本番環境をモニターする
• ローテーションを組んでオンコールに対応する
- 31. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“ガードレール"
を構築
- 32. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
学んだこと、パターン、
プラクティスの共有に
投資を惜しまない
- 33. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOpsライフサイクル
BU
ILD
CO
D
E
TEST
PRO
VISIO
N
M
O
N
ITO
R
PLAN
D
EPLO
Y
DEV OPS
- 34. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps プラクティス例: CI/CD
MonitorProvisionDeployTestBuildCode
Continuous Integration
(継続的インテグレーション)
Continuous Delivery
(継続的デリバリー)
Continuous Deploy
(継続的デプロイ) Continuous
Monitoring and
Improvement
(継続的モニタ
リングと改善)
- 35. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWSのDevOpsサービス
MonitorProvisionDeployTestBuildCode
Elastic Beanstalk
OpsWorks for Chef Automate
OpsWorks Stacks
Cloud
Watch
Cloud
Formation
Code
Deploy
Code
Commit
Code Pipeline
Code Build
AWS Cloud9 AWS CodeStar
- 36. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Code Services
AWS CodeCommit
✤ セキュア、スケーラブルなGit互換のリポジトリサービス
✤ スタンダードなGit Toolからアクセス可能
✤ PushなどのイベントをトリガーにSNS/Lambdaを呼び出し可能
AWS CodeBuild
✤ スケーラビリティに優れたビルドサービス
✤ ソースのコンパイル、テスト、パッケージ⽣成をサポート
✤ Dockerイメージの作成も可能
AWS CodeDeploy
✤ S3またはGitHub上のコードをあらゆるインスタンスにデプロイ
✤ デプロイを安全に実⾏するための様々な機能を提供
✤ In-place(ローリング) およびBlue/Greenのデプロイをサポート
AWS CodePipeline
✤ リリースプロセスのモデル化と⾒える化を実現
✤ カスタムアクションによる柔軟なパイプライン作成が可能
✤ 様々なAWSサービスや3rdパーティ製品との統合をサポート
- 37. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeCommit
Secure, scalable, managed Git source control
スターンダードなGit toolが利⽤可能
レポジトリサイズの上限なし
Post commit hooks で Lambdaを実⾏可能
Pull Requestに対応 [New!]
IAMユーザまたはフェデレーションでログイン
ユーザごとの課⾦
- 38. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
完全なマネージドのビルドサービス
ソースコードのコンパイル、実⾏、テスト、
ソフトウェアパッケージの⽣成など任意の処理を実⾏
処理性能の指定と同時複数ビルドでスケール
処理はDockerコンテナで実⾏され、⼀般的な環境は
AWSが提供。カスタムイメージによるビルドも可能
利⽤したコンピュータ リソース/分のみの⽀払い
CodePipelineやJenkinsからプロジェクトをキック
する形で統合可能
AWS CodeBuild
- 39. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
あらゆるインスタンスに対するコードのデプロイ
メントを⾃動化
アプリケーションの複雑なアップデートに対処
アプリケーションのデプロイ中のダウンタイムを
回避
⾔語やオペレーティングシステムに依存せずに、
Amazon EC2やオンプレミスサーバーにデプロイ
サードパーティツールやAWSとの統合
AWS CodeDeploy
- 40. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
アプリケーションのすばやく信頼できるアップ
デートを可能にする継続的デリバリサービス
ソフトウェアリリースプロセスのモデル化と⾒
える化
コードが変更されるたびにコードをビルド、テ
スト、デプロイ
サードパーティツールやAWSとの統合
AWS CodePipeline
- 41. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Code Build Test Production
Third Party
Tooling
AWS CodeCommit AWS CodeBuild AWS CodeDeploy
AWS CodePipeline
ソフトウェア リリース フェーズ
AWS Code シリーズとのインテグレーション
- 42. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
- 43. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeStar とは
アプリケーションをすばやく開発および構築して AWS
にデプロイするために必要なツールを備えたクラウド
ベースの開発サービス
- 44. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS
CodePipeline
AWS
CodeCommit
AWS
CodeBuild
Amazon
S3
AWS
CloudFormationDeveloper
Amazon API
Gateway
AWS
Lambda
CodeStar ならCI/CD パイプラインまで⾃動構築
AWS
CloudFormation
- 45. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeStarの主な特徴
• プロジェクト テンプレートの提供
• チームのアクセス管理
• ホスト型のGitリポジトリ
• 完全マネージド型ビルドサービス
• ⾃動化された継続的デリバリーパイプライン
• ⾃動デプロイ
• ⼀元化されたプロジェクトダッシュボード
• Atlassian JIRA Softwareの課題追跡機能との統合
- 46. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
プロジェクトテンプレートの提供
- 47. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
チームのアクセス管理
組み込みのプロジェクトロール ポリシー
- 48. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
⼀元化されたダッシュボード
- 49. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Atlassian JIRA Softwareとの統合
- 50. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
統合開発環境(IDE)との連携
• AWS Cloud9 との連携
• Visual Studio、Eclipseとの連携⼿順
• IDEからAWS CodeCommitにアクセスするための
URLとクレデンシャルの提供
- 51. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud9 と CodeStar で実現する DevOps
コーディング、実⾏、デバッグが可
能なクラウド ネイティブIDE
リッチエディタ、統合デバッグ、
AWS CLIがプリインストールされた
ビルドイン ターミナル
数分で利⽤開始可能で、ローカル開
発マシンのインストールや環境構成
は不要
- 52. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud9 と CodeStar で実現する DevOps
Amazon EC2 インスタンスまたはSSH
経由で独⾃のLinuxサーバー環境に開
発環境を構築可能
AWS Cloud9 ダッシュボードを利⽤し
て、多数のAWS Cloud9 環境を切り替
え可能
AWS CodeStarと連携、環境構築可能
- 53. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud9 画⾯例
- 54. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
フル機能のエディタ
- 55. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
幅広いランタイムの選択肢
- 56. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CloudFormation
n 環境を⾃動構築
n テンプレートを元に、EC2やELBと
いったAWSリソースの環境構築を
⾃動化
n JSONまたはYAMLのテキストで
テンプレートを⾃由に記述可能
n 豊富なリファレンス
n Microsoft Windows Server や SAP
HANA などのリファレンス実装を⽤意
設定管理 & クラウドのオーケストレーション サービス
スタック
EC2
Auto
Scaling
テンプレート(設定ファイル)
テンプレートに基づき
各リソースが⾃動起動
EC2
Cloud
Formation
- 57. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudWatch
特徴 (http://aws.amazon.com/jp/cloudwatch/)
• AWSリソースの死活、性能、ログ監視
• 取得メトリックスのグラフ化
• 各メトリックスに対してアラーム作成
価格体系 (http://aws.amazon.com/jp/cloudwatch/pricing/)
• 基本モニタリング(5分間隔)は無料
• (利⽤する場合) 詳細モニタリング
• (利⽤する場合)カスタムメトリックス、APIリ
クエスト、アラーム、ログ等
AWSの各種リソースを監視するサービス
- 58. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps をどこから始めるか︖
- 59. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps は⽬的地ではなく、
進んでいく道のり
- 60. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps への第⼀歩
時間
組織のマインド
セットを揃える
運⽤モデルを定義
MVP の範囲を特定
パイロットチーム
を編成
アプリケーションのサービスを分離
エンドツーエンドの
デリバリープラッ
トフォームを構築
ガードレールを構築
機能グループを統合
適応学習
洗練と反復を無限に
同時推進
分離
可観測性
AiOps
Well Architected
運営モデル
ガードレール
構築
カオスエンジニアリング
コーチがサポート
パイロットチームを定義
- 61. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps への第⼀歩
時間
組織のマインド
セットを揃える
運⽤モデルを定義
MVP の範囲を特定
パイロットチーム
を編成
アプリケーションのサービスを分離
エンドツーエンドの
デリバリープラッ
トフォームを構築
ガードレールを構築
機能グループを統合
適応学習
洗練と反復を無限に
同時推進
分離
可観測性
AiOps
Well Architected
運営モデル
ガードレール
構築
カオスエンジニアリング
コーチがサポート
パイロットチームを定義
1. ⼩規模で始め、学習しながら反復
2. 規模拡⼤の枠組みを設定
3. 知⾒を共有
- 62. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Networking & Content
Delivery AnalyticsCompute
Storage
Developer Tools Management & Governance Security, Identity and Compliance
Mobile Database
Business Applications
S3
CloudFront
EFS Glacier
Storage
Gateway
API Gateway
AppStream
CloudSearch
SQS
Device Farm
Cognito
SNS
RDS DynamoDB ElastiCache RedShift
WorkSpaces WorkDocs WorkMail
Lambda ECS
Elastic
Beanstalk
EC2 VPC
Direct
Connect
Route 53 EMR Data Pipeline Kinesis
Elastic Load
Balancing
QuickSight
Elasticsearch
Service
CodeCommit CodeDeploy CodePipeline CloudWatch
Cloud
Formation
CloudTrail Config OpsWorks
Identity &
Access
Management
Directory
Service
Trusted
Advisor
Cloud HSM
Key
Management
Service
Web App
Firewall
Snowball
Database
Migration
Service
IoT
IoT Core
165 を超える主要なAWSサービス
CodeBuild
Athena
Machine Learning
Lex
Amazon
SageMaker
Polly Rekognition
GameLift
Game
Step
Functions
End User ComputingApplication Integration
GuardDuty
Service
Catalog
Amplify Aurora
Customer Engagement
Connect SES
IoT
GreenGrass
Alexa for
Business
Pinpoint
Chime
Systems
Manager
- 63. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOpsライフサイクル
BU
ILD
CO
D
E
TEST
PRO
VISIO
N
M
O
N
ITO
R
PLAN
D
EPLO
Y
DEV OPS
- 64. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOpsライフサイクル
BU
ILD
CO
D
E
TEST
PRO
VISIO
N
M
O
N
ITO
R
PLAN
D
EPLO
Y
DEV OPS
- 65. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOpsライフサイクル
BU
ILD
CO
D
E
TEST
PRO
VISIO
N
M
O
N
ITO
R
PLAN
D
EPLO
Y
DEV OPS
DevOps 全体をうまくまわす仕組みも必要
カスタマーサクセス
開発⼿法・管理
- 66. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS パートナーネットワーク(APN)
AWSサービスはビルディングブロックとして、
適材適所に組み合わせてお使いいただけます
AWSの各サービスを組み合わせて強化する
パートナーソリューション
もお使いいただけます
- 67. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Marketplace
• オンデマンドでソフトウェアをデプロイ可能
• 1,400 を超える ISV
• 4,800 以上の商品リスト
• 23 万⼈のアクティブなCustomer
• 毎⽉ 6 億5 000 万時間を超える
EC2 インスタンスがデプロイ
• 18 のリージョンに展開
• 39 カテゴリー
• 柔軟な消費と契約モデル
• ほとんど瞬時に簡単で安全なデプロイ
• ⼀括請求書
• 常に進化
- 68. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
・ISV/SaaS事業者様の参考
となる情報を集約したポー
タルサイト
・最新のトピックスや技術
コンテンツに加え、パート
ナプログラム、SaaS on
AWSのお客様事例も紹介
AWS SaaS Portal
https://aws.amazon.com/jp
/partners/isv-saas-portal/
- 69. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SaaS Online Seminar
Archive
・SaaS Portalより登録いただく
ことでアクセス可能
・過去開催しているSaaS Online
Seminar Seriesを資料と動画
- 70. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ありがとうございました