SlideShare a Scribd company logo
1 of 107
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
亀田 治伸
アマゾン ウェブ サービス ジャパン株式会社
プロダクトマーケティング
エバンジェリスト
AWS Night School
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
本セッションのAgenda
• Amazon Web Services (AWS)の基本コンセプト
• リージョンとアベイラビリティゾーン
• Amazon Elastic Compute Cloud (EC2) と Elastic Blok Store (EBS)
• Amazon Simple Storage Service (S3)
• Amazon Virtual Private Cloud (VPC)
• セキュリティ、アイデンティティ、アクセス管理
• Amazon Identity and Management (AWS IAM)
• Amazon Relational Database Service (RDS)
• スケーラビリティを実現するサービス
• Auto Scaling、Elastic Load Balancing、Amazon CloudWatch
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Our Vision:
地球上で、最もお客さまを
大切にする企業であること。
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWSの機能改善、イノベーションのスピード
24 48 61 82
160
280
516
722
1,017
1,430
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
品揃え
顧客体験
顧客数
出店社
低コスト体質・構造
低価格
成 長
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
(*) お客さまとは、アクティブカスタマー数を指します。
アクティブカスタマーとは、AWSクラウド無料利用枠を含むAWSアカウントの先月の使用状況のあるアマゾン会員でない対象アカウントです。
数百万を超えるお客様
2 0 1 2 2 0 1 3 2 0 1 5 2 0 1 72 0 1 4 2 0 1 62 0 0 8 2 0 0 9 2 0 1 0 2 0 11 T O D AY
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
日本で10万以上のお客様
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWSのグローバルインフラストラクチャ
18のリージョン, 1のローカルリージョン, 55のアベイラビリティーゾーン, 100+のエッジロケーション
AWS GovCloud (3) ※カッコ内の数はアベイラビリティゾーン
米国西部
オレゴン (3)、北カリフォルニア (3)
米国東部
バージニア北部 (6)、オハイオ (3)
カナダ
中部 (2)
南米
サンパウロ (3)
欧州
アイルランド (3)、フランクフルト (3)、ロンドン (3)、パリ (3)
アジアパシフィック
シンガポール (3)、シドニー (3)、東京 (4)、大阪(1)(*)、ソウル (2)、ムンバイ (2)
中国
北京 (2)、寧夏 (3)
(*) 大阪ローカルリージョン
新しいリージョン (近日追加予定)
バーレーン
中国香港特別行政区
スウェーデン
AWS GovCloud (米国東部) (As of May, 2018)
すぐに使える100を超えるサービス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS利用料の一般的な内訳例
・通常「仮想サーバ/データベース」が
毎月のご利用料金の9割程度を占めるケースが多い
EC2
RDS
データ転送量
その他
通常の
ご利用料金
内訳例
EC2
RDS
データ転送量
その他
動画配信
特殊なご利用料金内訳例
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Billing Alert(請求アラーム)
利用状況を監視し、閾値を越えたら通知することが可能
• 閾値を越えたらSimple Notification Service(SNS)にて通知
• SNSの機能により、EメールやHTTP/HTTPS等での通知
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
リージョンとアベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWSのグローバルインフラストラクチャ
18のリージョン, 1のローカルリージョン, 55のアベイラビリティーゾーン, 100+のエッジロケーション
AWS GovCloud (3) ※カッコ内の数はアベイラビリティゾーン
米国西部
オレゴン (3)、北カリフォルニア (3)
米国東部
バージニア北部 (6)、オハイオ (3)
カナダ
中部 (2)
南米
サンパウロ (3)
欧州
アイルランド (3)、フランクフルト (3)、
ロンドン (3)、パリ (3)
アジアパシフィック
シンガポール (3)、シドニー (3)、東京 (4)、
大阪(1)(*)、ソウル (2)、ムンバイ (2)
中国
北京 (2)、寧夏 (3)
新しいリージョン (近日追加予定)
バーレーン
中国香港特別行政区
スウェーデン
AWS GovCloud (米国東部)
(As of May, 2018)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
リージョンとアベイラビリティゾーン(AZ)
AZ
AZ
AZ AZ AZ
Transit
Transit
Data Center
Data Center
Data Center
Data Center
 アベイラビリティゾーン(AZ):データセンター群
 1つのAZは、最低1ヶ所以上のデータセンターで構成
 リージョンは2つ以上のAZから構成
 各AZは、互いに影響を受けないように独立
 AZ間は低遅延の高速専用線で接続
• 物理的に離れた場所に設置
• 洪水を考慮
• 地盤が安定している場所に設置
• 無停止電源(UPS)、バックアップ電源、異なる
電源供給元
• 冗長化されたTier-1ネットワーク
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWSの1つのリージョンは必ず2つ以上のAvailability Zoneで構成されており、東京リージョンには2
つのAvailability で構成されています。Zoneがあります。Availability Zoneは必ず1つ以上のデー
タセンター
Availability
Zone A
Availability
Zone B
リージョン
AWSの可用性に対する基本的な考え方
は、Multi-Availability Zone、つま
り、
「データセンターレベルで単一障害点を失
くす」というものです。
これにより、貴社サービスの可用性は格段
に向上します。
1ms
程度
Availability Zone Concept
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 と EBS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon
EC2
Amazon Elastic Compute Cloud (EC2)
• サイズ変更可能なコンピューティング処理能力
• 新しいサーバーインスタンスの取得と起動に
要する時間を分単位に短縮
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 の特徴
• コンピューティング要件の変化に応じて
キャパシティーを拡大/縮小可能
• お支払いは実際に使用したキャパシティー分のみ
• Linux または Windows の選択
• 複数の AWS リージョンおよびアベイラビリティ
ーゾーンにまたがったデプロイで信頼性を向上
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 インスタンスの起動
1. AMAZON EC2 インスタンスを起動する AWS リージョンを決定
2. 事前設定されている Amazon Machine Image (AMI) から
Amazon EC2 インスタンスを起動
3. CPU、メモリ、ストレージ、ネットワーク要件に基づいて
インスタンスタイプを選択
4. ネットワーク IP アドレス、セキュリティグループ、
ストレージボリューム、キーペアを設定
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスと AMI
以下に基づいて AMI を選択:
• AWSにより準備されたもの
• コミュニティAMI
• ユーザー独自AMI
• 全ユーザー共有
• 特定ユーザー共有
AMI
インスタンス
インスタンス
任意のタイプ
のインスタン
スを起動
ホストコンピュータ
ホストコンピュータ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 インスタンス
OS、アプリケー
ション、設定
AMI
実行中または停
止された VM
インスタンス
AZ
VPC
リージョン
EBS
S3
EBS スナッ
プショット
EBS EBS EBS EBS EBS
AZ
インスタンス インスタンス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスタイプとは
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
現行世代のインスタンス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスのユーザーデータ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスのユーザーデータ
インスタンスユーザーデータ:
起動時にインスタンスに渡すことができる
一般的な自動化された設定タスクを実行するために使用できる
インスタンス起動後にスクリプトを実行する
インスタンス起動時に、ユーザーデータを指定可能
ユーザーデータの種類:
Linux スクリプト – cloud-init により実行される
Windows バッチまたは PowerShell スクリプト
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ユーザーデータの例: Linux
#!/bin/sh
yum -y install httpd
chkconfig httpd on
/etc/init.d/httpd start
ユーザーデータのシェルスクリプトは #! の記
号とスクリプトを読み取るインタープリタのパ
スが最初に付いている必要がある
Apache ウェブサーバーをイン
ストールする
ウェブサーバーを有効にする
ウェブサーバーを起動する
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ユーザーデータの例: Windows
<powershell>
Import-Module ServerManager
Install-WindowsFeature web-server, web-webserver
Install-WindowsFeature web-mgmt-tools
</powershell>
Windows PowerShell の
Server Manager モジュールを
インポートする
IIS をインストールする
ウェブ管理ツールをインス
トールする
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 インスタンスストアと Amazon EBS
Amazon EC2 インスタンスストア
• ローカルのインスタンスストアに保存されたデータは、
インスタンスの有効期間のみ保持される
• ストレージは一時的
Amazon EBS
• Amazon EBS ボリュームに保存されるデータは、
インスタンスの有効期間とは関係なく保持される
• ストレージは永続的
EC2 Management ServicesEBS Storage
EC2 Hosts
EC2 Software
Customer Instances
AMAZON EC2 ARCHITECTURE
Fast, inexpensive,
fault-tolerant
network
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic Block Store (EBS)
• 一貫性のある低レイテンシーのパフォーマンスを提供する永続的
なブロックレベルのストレージボリューム
• アベイラビリティーゾーン内で自動的にレプリケート
• Amazon S3 にスナップショットを安全に保存
Amazon
EBS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS の特徴
• 作成可能なもの:
• 1 GiB~1 TiB の EBS マグネティックボリューム
• 最大 16 TiB の EBS 汎用 (SSD) ボリュームおよびプロビジョンド IOPS (SSD)
ボリューム
• 暗号化された EBS ボリュームを利用することにより、規制/監査デー
タやアプリケーションに関して、保管データの幅広い暗号化要件に対
応可能
• EBS ボリュームの特定の時点におけるスナップショットを作成して、
Amazon S3 に永続的に保管可能
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ほんとうに数分で起動するのか
やってみましょう!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスメタデータ
実行中のインスタンスですべてのインスタンスメタデータの
カテゴリを表示する場合に使用する
URI: http://169.254.169.254/latest/meta-data/
Linux インスタンスの場合:
• $ curl http://169.254.169.254/latest/meta-data/
すべてのメタデータがテキストとして
返される
(コンテンツタイプ: text/plain)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスのライフサイクル
AMI
pending
起動
running
terminated
shutting-down
終了
停止
stoppingrebooting
再起動
開始
終了
stopped
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスのライフサイクル
AMI
pending
起動
running
terminated
shutting-down
終了
停止
stoppingrebooting
再起動
開始
終了
stopped
インスタンスタイプの
変更
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Webサイトのデータはどこに保存する?
ユーザ
情報
商品画像
データ
商品情報
在庫情報
ショッピング
カート
セッション情報
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
データストア = データを保存する場所
ポイント: データの種類に応じて適切なデータストアを選択
サーバー
ローカル
ストレージ
サーバー
ローカル
ストレージ
共有
ストレージ
データベース
(RDBMS)
データベース(NoSQL)
サーバ自身からしか
アクセスできない
複数のサーバから
アクセスできる
App
App
・ショッピングカート
・セッション情報
・ユーザ情報
・商品情報
・在庫情報
・商品画像データ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Simple Storage Service (S3)
Amazon S3
インターネット対応のストレージ
常にオンラインで HTTP でアクセス可能
どのような量でも、データの保存、取り出しをいつでも、
ウェブ上のどこからでも実行可能
優れたスケーラビリティ、信頼性、耐久性
お預かりした分のみの従量課金
EBSに比べて10倍以上の費用対効果
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 の概念
• Amazon S3 では、データがオブジェクトとして
バケットに保存される
• オブジェクトは、ファイルと、そのファイルについて
説明する任意のメタデータ (省略可能) で構
成される
• バケットとそのオブジェクトのアクセスログを制御で
きる
• ファイルの世代管理・保存に対応
Amazon
S3
オブジェクトが保
存されたバケット
バケット
オブジェクト
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 の特徴
バケットに無制限のオブジェクトを保存可能
最大 5 TB のオブジェクトを保存可能。バケットのサイズ制限なし
年間 99.999999999% のオブジェクト耐久性と、99.99% の
オブジェクト可用性を提供するように設計
HTTPS エンドポイントを提供可能
オブジェクトの暗号化をサポート
監査のためのアクセスログ
標準ベースの REST インターフェイスを提供
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
オブジェクトキー
オブジェクトキーとは、バケット内の
オブジェクトが持つ一意の識別子
https://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html
バケット オブジェクトキー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 のセキュリティ
以下により、バケットとそのオブジェクトの
アクセスを制御可能:
• アクセスコントロールリスト (ACL)
• バケットポリシー
• Identity and Access Management (IAM) ポリシー
SSL で暗号化されたエンドポイント経由で Amazon S3 にデータをア
ップロードまたはダウンロード
AWS SDK を使用してデータを暗号化
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 バージョニング
パフォーマンスに影響を与えずに偶発的な上書きや削除から保護する
アップロードごとに新しいバージョンを生成する
削除されたオブジェクトの取得や以前のバー
ジョンへのロールバックが可能
Amazon S3 バケットの 3 種類の状態:
• バージョニング無効 (デフォルト)
• バージョニング有効
• バージョニング一時停止
バージョニング有効
Key: photo.gif
ID: 121212
Key: photo.gif
ID: 111111
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Glacier
低コストの長期アーカイブサービス
低頻度アクセスのデータに最適
99.999999999% の耐久性を実現するように設計
取り出し時間: 3~5 時間
S3に比べて約1/3のコスト
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ストレージクラスの選択
オブジェクトにリアルタイム(待ち時間なし)の
アクセスが必要?
オブジェクトへの
アクセス頻度が高い?
S3-標準
GBあたり料金: $$$
可用性: 99.99%
S3 標準-低頻度アクセス(IA)
GBあたり料金: $$
可用性: 99.9%
Glacier
GBあたり料金: $
可用性: 99.99%(復元後)
No
(取り出し・復元に3-5時間
かかってもよい)
Yes
Yes No
(取り出しに料金が
かかってもよい)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon
Glacier
ライフサイクルポリシー
Amazon S3 のライフサイクルポリシーを利用することで、保存期間に
基づいてオブジェクトを削除または移動できる
Amazon S3
標準
Amazon S3
標準 – 低頻度
アクセス
30 日間 60 日間
Preview2.mp4 Preview2.mp4 Preview2.mp4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3とEC2、EBSの違い・使い分け
S3バケット
EC2 EC2
ロードバランサー(ELB)
EBS EBS
ファイルを
アップロード
トラフィックを
分散
→左のサーバへ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3とEC2、EBSの違い・使い分け
S3バケット
EC2 EC2
ロードバランサー(ELB)
EBS EBS
アップロードされ
たファイルはS3
に保存する
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Virtual Private Cloud (VPC)
AWS クラウドの隔離されたプライベート仮想ネ
ットワークをプロビジョニングする
仮想ネットワーク環境を完全に制御できる
Amazon
VPC
AWS クラウドの隔離されたプライベート仮想ネ
ットワークをプロビジョニングする
仮想ネットワーク環境を完全に制御できる
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC とサブネット
サブネットは大きく2つに分割する
• プライベートサブネット:インターネット経由でアクセスできないリソースに使用
• パブリックサブネット:インターネット経由でアクセスできるリソースに使用
各サブネットは 1 つのアベイラビリティーゾーン内に作成する。複数のゾ
ーンにまたがるサブネットを作成することはできない
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
アベイラビリティゾーン
Public サブネット
Private サブネット
Public サブネット
Private サブネット
アベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
アベイラビリティゾーン
インターネットゲートウェイ
Public サブネット
Private サブネット
Public サブネット
Private サブネット
アベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
Web
DB
アベイラビリティゾーン
インターネットゲートウェイ
Public サブネット
Private サブネット
Public サブネット
Private サブネット
アベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
Web
DB
アベイラビリティゾーン
インターネットゲートウェイ
Public サブネット
Private サブネット
Public サブネット
Private サブネット
アベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC の例
インターネット
リージョン
Web
DB
アベイラビリティゾーン
インターネットゲートウェイ
Public サブネット
Private サブネット
Public サブネット
Private サブネット
顧客
オンプレミス環境
VPN
ゲートウェイ
アベイラビリティゾーン
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPCのネットワーク制御機能
ファイアウォール
• 通信を通す・通さないの制御をおこなう
• セキュリティグループ/ネットワークACL
ネットワークの経路制御
• VPC内もしくはVPCの内外の通信経路を設定する
• ルートテーブル
インターネットとの通信
• VPC内とインターネット間で通信が可能
• インターネットゲートウェイ
オンプレミス環境との接続
• VPC内とオンプレミス環境間で通信が可能
• Direct Connect/VPN
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ファイアウォール
セキュリティグループ
ネットワーク
アクセスコントロール
リスト (ACL)
サブネット
10.0.0.0/24
サブネット
10.0.1.0/24
インターネットゲートウェイVPN ゲートウェイ
VPC ルーター
10.0.0.0/16
セキュリティグループ セキュリテ
ィグループ
セキュリテ
ィグループ
ネットワーク ACL ネットワーク ACL
ルーティングテーブル ルーティングテーブル
インス
タンス
インス
タンス
インス
タンス
インス
タンス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Web層
セキュリティ
グループ
セキュリティグループ:機能別のセキュリティ
AP層
セキュリティ
グループ
DB層
セキュリティ
グループ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
セキュリティ、アイデンティティ
アクセス管理
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
責任共有モデル – AWS
AWS
クライアント側のデータ暗号化とデータの
整合性認証
サーバー側の暗号化
(ファイルシステムおよびデータ)
ネットワークトラフィックの保護
(暗号化/整合性/アイデンティティ)
プラットフォーム、アプリケーション、アイデンティティとアクセスの管理
オペレーティングシステム、ネットワーク、ファイアウォール設定
お客様のデータ
お客様
基盤サービス
コンピューティング ストレージ データベース ネットワーク
AWS グローバルインフラ
ストラクチャ リージョン
アベイラビリティーゾーン
エッジロケーション
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
認証と認定
ISO 9001、ISO 27001、ISO 27017、ISO 27018、IRAP (オーストラリア)、
MLPS Level 3 (中国)、MTCS Tier 3 Certification (シンガポール) など
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS利用におけるセキュリティ確保の全体像
コマンドライン/ SDK
キーペア
による認証
セキュリティグループによる
インスタンスの通信保護
仮想デスクトップ
ターミナル
アクセスキーID
シークレットキー
によるAPIの認証
マネジメントコンソール
EBS
EBS
EC2
(Linux)
EC2
(Windows)
IAMユーザID
Password
による認証
AWSAPI
マネジメント
コンソール
VPCによる
ネットワークの通信保護
SSL
SSL
SSH
RDP
IAM
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IAMの概要
{メールアドレス、パスワード}ルートアカウント
=管理者
IAMユーザ {ユーザー名、パスワード}
IAMグループ
P
P
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IAMの概要
{メールアドレス、パスワード}ルートアカウント
=管理者
IAMユーザ {ユーザー名、パスワード}
IAMグループ
P
P
IAMロール
P
EC2
ユーザ
App
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
インスタンスメタデータ (再掲)
実行中のインスタンスですべてのインスタンスメタデータの
カテゴリを表示する場合に使用する
URI: http://169.254.169.254/latest/meta-data/
Linux インスタンスの場合:
• $ curl http://169.254.169.254/latest/meta-data/
すべてのメタデータがテキストとして
返される
(コンテンツタイプ: text/plain)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM ロール – インスタンスプロファイル
Amazon EC2
アプリケーション &
EC2 MetaData Service
http://169.254.169.254/latest/meta-data/iam/security-credentials/rolename
Amazon
S3
1
2
3
4
インスタン
スの作成
IAMロールの選択
S3とやり取りする
アプリケーション
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM 認証
認証
AWS マネジメントコンソール
• ユーザー名とパスワード
IAM ユーザー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM 認証
認証
AWS CLI または SDK API
• アクセスキーとシークレットキー
アクセスキー ID: AKIAIOSFODNN7EXAMPLE
シークレットアクセスキー: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Java Python .NET
AWS SDK および APIAWS CLI
IAM ユーザー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM 認可
認可
ポリシー:
• 権限を記述している JSON ドキュメント
• ユーザー、グループ、
ロールに割り当てられる
IAM ユーザー IAM グループ
IAM ロール
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM ポリシー
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1453690971587",
"Action": [
"ec2:Describe*",
"ec2:StartInstances",
"ec2:StopInstances”
],
"Effect": "Allow",
"Resource": "*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "54.64.34.65/32”
}
}
},
{
"Sid": "Stmt1453690998327",
"Action": [
"s3:GetObject*”
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::example_bucket*”
}
]
}
IAM ポリシー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM ポリシーを割り当てる
IAM ユーザー
IAM グループ
IAM ロール
割り当てる 割り当てる
割り当てる
IAM ポリシー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IAM ロール – ロールを引き受ける
IAM 制限ポリシー
IAM ユーザー
A-1
AWS アカウント A
IAM Admin
Role
IAM 管理者ポリシー
割り当てる
引き受ける
割り当てる
1
2
IAM ユーザー
B-1
AWS アカウント B
Amazon
S3
引き受ける
4
アクセス
53
アクセス
1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Relational Database Service (RDS)
Amazon
RDS
コスト効率に優れ、サイズ変更が可能なキャパシティー
時間のかかるデータベース管理タスクが不要
Amazon Aurora、MySQL、MariaDB、
Microsoft SQL Server、Oracle、および
PostgreSQL の各データベースを利用可能
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
マネージド型サービスの利点とは?
電源、HVAC、ネット
ラックおよびスタック
サーバーメンテナンス
OS パッチ
DB ソフトウェアパッチ
データベースのバックアップ
スケーリング
高可用性
DB ソフトウェアのインストール
OS のインストール
アプリケーションの最適化
データベースをオンプレミス
で構築する場合
電源、HVAC、ネット
ラックおよびスタック
サーバーメンテナンス
OS のインストール
お客様
OS パッチ
DB ソフトウェアパッチ
データベースのバックアップ
スケーリング
高可用性
DB ソフトウェアのインストール
アプリケーションの最適化 アプリケーションの最適化
AWS
お客様
データベースをEC2に
構築する場合
電源、HVAC、ネット
ラックおよびスタック
サーバーメンテナンス
OS パッチ
DB ソフトウェアパッチ
データベースのバックアップ
高可用性
DB ソフトウェアのインストール
OS のインストール
スケーリング
お客様
AWS
RDSを利用する場合
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS
シンプルかつ迅速なデプロイ
一般的なデータベース管理タスクの処理
アプリケーションとの互換性
シンプルかつ迅速にスケール
安全
コスト効率
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DB インスタンス
DB インスタンスは Amazon RDS の基本構成要素である
DB インスタンスは、クラウド内の独立したデータベース環境である
DB インスタンスには、複数のユーザーが作成したデータベースを含める
ことができる
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS バックアップの使用方法
自動バックアップ:
• データベースを特定時点まで復元
する(5分間隔)
• デフォルトで有効
• 最大 35 日間までの保持期間を
選択できる
手動スナップショット:
• スナップショットから新しいデータベー
スインスタンスを作成できる
• ユーザーによって開始される
• ユーザーによって削除されるまで持
続される
• Amazon S3 に保存される
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
クロスリージョンスナップショット
別の AWS リージョンに保
存されているデータ
ベーススナップショットのコピ
ーである
災害対策のためのバックア
ップを提供する
別のリージョンに移行するた
めの基礎として使用できる
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS のセキュリティ
• Amazon VPC で DB インスタンスを実行する
• IAM ポリシーを使用して Amazon RDS リソースへのアクセスを許可する
• セキュリティグループを使用する
• DB インスタンス (Amazon Aurora、Oracle、MySQL、MariaDB、PostgreSQL、
Microsoft SQL Server) には Secure Socket Layer (SSL) 接続を使用する
• 実行環境及び保管時の RDS DB インスタンスとスナップショットを保護するには、Amazon
RDS の暗号化を使用する
• Oracle DB インスタンスおよび Microsoft SQL Server インスタンスではTransparent
Data Encryption (TDE) を使用可能
• DB エンジンのセキュリティ機能を使用して、DB インスタンスへのアクセスを制御する
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2との違い スケーラビリティ
Amazon RDS データベース
インスタンス:
マスターおよびマルチ AZ ス
タンバイ
アプリケーション
(Amazon EC2 インスタ
ンス内)
Elastic Load Balancing
ロードバランサーイン
スタンス
Amazon S3 に取得した
DB スナップショット
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
RDS のマルチ AZ 配置
マルチ AZ の動作により、データベースは同じ AWS リージョ
ン内の別の AZ に同期的にレプリケートされる
マスターデータベースに障害が発生した場合は、自動的にス
タンバイに対してフェイルオーバーを行う
計画されたメンテナンスをまずスタンバイデータベースに適
用
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2との違い スケーラビリティ
Amazon RDS データベース
インスタンス:
マスターおよびマルチ AZ ス
タンバイ
アプリケーション
(Amazon EC2 インスタ
ンス内)
Elastic Load Balancing
ロードバランサーイン
スタンス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS for Aurora
特徴 (http://aws.amazon.com/jp/rds/aurora/)
• MySQL5.6とPostgreSQL 9.6に互換性あり
• 3AZに6本のディスクに書き込み2本のディスク障害
ではRead/Write可能。3本のディスク障害でも
Read可能
• キャシュとログをAuroraプロセスから分離することで
Auroraプロセスのリスタートでもキャッシュが残る
• レプリケーション遅延は10-20ms程
• 64TBまでディスクがシームレスにスケールする
Amazonがクラウド時代に再設計したデータベース
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auroraのストレージ
SSDを利用したシームレスに
スケールするストレージ
• 64TBまで自動的にスケール
標準で高可用性を実現
• 2つのコピー障害時でも読み書きに問題なし
• 3つのコピー障害時でも読み込み可能
• 継続的なS3へのバックアップ
リードレプリカもマスタと同じストレージを
参照
• レプリケーション遅延は10ms-20ms
SQL
Transactions
AZ 1 AZ 2 AZ 3
Caching
Amazon
S3
SQL
Transactions
Caching
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auroraのレプリケーション
MySQL read scaling
•レプリケーションにはbinlog / relay logが必要
•レプリケーションはマスターへ負荷がかかる
•レプリケーション遅延が増加していくケースがある
•フェイルオーバでデータロスの可能性がある
Aurora Master
30% Read
70% Write
Aurora Replica
100% New
Reads
Shared Multi-AZ Storage
MySQL Master
30% Read
70% Write
MySQL Replica
30% New Reads
70% Write
シングルスレッドで
Binlog適用
Data Volume Data Volume
Amazon Aurora read scaling
• Binlogによるレプリケーションではない
• マスターへの負荷を最小限に15台までリードレプリカを
作成可能
• 10-20ms程度のレプリケーション遅延
• フェイルオーバでデータロスが無い
PAGE CACHE
UPDATE
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
クラスタエンドポイント
Availability Zone A Availability Zone B
VPC subnet VPC subnet
VPC subnet VPC subnet
Aurora Writer Aurora Reader
クラスタエンドポイント
• 各Auroraノードは個別に
エンドポイントを持っている
• クラスタエンドポイントは、
その時アクティブな
Aurora Writerノードの
CNAME
• Readは読み込みエンドポ
イントを参照する
Write
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
クラスタエンドポイント
Availability Zone A Availability Zone B
VPC subnet VPC subnet
VPC subnet VPC subnet
Aurora Writer Aurora Reader
クラスタエンドポイント
Write
• フェイルオーバが発
生すると、Aurora
ノードの昇格が行わ
れ、クラスタエンド
ポイントの指し先が
変わる
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
使いどころ
Amazon Auroraに移行することで、クエリスループットの向上などが見
込まれる
• マルチコア環境でCPUを効率的に利用
• 分散ロック機構やQuery Cacheの改善による性能向上
ディスク
• データ量の増加に応じてディスク容量を気にする必要が無い
• 性能に影響を及ばさずバックアップ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
スケーラビリティを実現するサービス
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon.com の典型的な週間トラフィック
日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日
用意したキャパシティー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon.com の 11 月のトラフィック
用意したキャパシティー
11 月
76%
24%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
スケーラビリティ
11 月
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ベストプラクティス: スケーラビリティを確保する
ベストプラクティス
アラームのしきい値に達
したアプリケー
ションサーバー
Auto Scaling が
アラームを受信し、スケ
ールアウトする
キャパシティーが
上限に到達する前に、新し
いサーバーの
準備が整っている
ユーザーの
アクセスが
中断されることはな
い
そのアーキテクチャが
需要の変化に
対応できるようにする
クラウドベースのインフラストラクチャの大きな
メリットの 1 つは、リソースの需要の変化に
迅速に対応できること
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling
• Amazon EC2 のキャパシティーを自動的
にスケーリング
• 使用量が変動するアプリケーションに最適
• 追加料金なしで使用可能
Auto
Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
連携する 3 つのサービス
レイテンシー
(遅延時間)を
モニタリング
CloudWatchAuto Scaling
Elastic Load
Balancing
Auto Scaling グループ
Auto Scalingの
ポリシーを実行
多数のユーザー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling の利点
コスト管理の強化可用性の向上耐障害性の向上
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling グループ
• EC2 インスタンスの集合
• Auto Scaling グループ内のインスタンスは、インスタンスのスケ
ーリングと管理のための論理グループとして扱われる
最小サイズ
希望するキャパシティー
最大サイズ
必要に応じてスケ
ールアウト
Auto Scaling グループ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Load Balancing(ELB)
• 複数のインスタンスにトラフィックを分散
• 正常に動作していない EC2 インスタンスを検出して
除去するためのヘルスチェックをサポート
• EC2 インスタンスへの HTTP、HTTPS、および TCP
トラフィックのルーティングと負荷分散をサポート
Elastic
Load
Balancing
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ロードバランサーのタイプ
アベイラビリティー
ゾーン A
アベイラビリティー
ゾーン B
EC2EC2
インターネット接続
EC2EC2
TCP/UDP
EC2EC2
内部
EC2 EC2
パブリック パブリック
プライベートプライベート
ロードバランサー ロードバランサー ロードバランサー
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch
• AWS クラウドリソースと AWS でお客様が実行する
アプリケーションのモニタリングサービス
• リソース使用率、動作パフォーマンス、全体的な
リソース消費パターンを可視化
• アプリケーション専用にカスタマイズされたユーザー独自の
メトリックスを定義可能
• AWS マネジメントコンソール、API、SDK、CLI から
アクセス可能
Amazon
CloudWatch
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch の特徴
他の AWS リソースをモニタリング
•グラフと統計を表示
アラームの設定
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch のアーキテクチャ
CloudWatch
対応 AWS
リソース
Amazon
CloudWatch
Amazon
CloudWatch
アラーム
SNS E
メール通知
Auto
Scaling
利用でき
る統計
統計情報コン
シューマー
AWS マネジメ
ントコンソール
CloudWatch メトリックス
CPUUtilization
StatusCheckFailed
独自のアプリケー
ション専用メト
リックス
PageViewCount
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch Events
CloudWatch
Events
Snapshotコード実行
特徴
 AWSの様々なリソースに対するイベントをトリガーにアクション
を実行
 例) 特定ユーザーがログインしたらLambda関数の実行
 スケジュールベースでのアクションも可能
 EBSスナップショットの定期取得などのBlueprintを用意
 イベント、ターゲット、ルールで定義
AWSの様々なリソースの変更を
リアルタイムに検知・アクション

More Related Content

What's hot

[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonightAmazon Web Services Japan
 
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonightAmazon Web Services Japan
 
AWS Transfer Family SFTP and FTPS
AWS Transfer Family SFTP and FTPSAWS Transfer Family SFTP and FTPS
AWS Transfer Family SFTP and FTPSKameda Harunobu
 
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonightAmazon Web Services Japan
 
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonightAmazon Web Services Japan
 
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonightAmazon Web Services Japan
 
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...Amazon Web Services Japan
 
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...Amazon Web Services Japan
 
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報Amazon Web Services Japan
 
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...Amazon Web Services Japan
 
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon ConnectAmazon Web Services Japan
 
AWS 資格試験対策講座
AWS 資格試験対策講座AWS 資格試験対策講座
AWS 資格試験対策講座Kameda Harunobu
 
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonightAmazon Web Services Japan
 

What's hot (20)

2021 days opening
2021 days opening2021 days opening
2021 days opening
 
re:invent2019 NW JAWS
re:invent2019 NW JAWSre:invent2019 NW JAWS
re:invent2019 NW JAWS
 
Migration to AWS part2
Migration to AWS part2Migration to AWS part2
Migration to AWS part2
 
Migartion to AWS
Migartion to AWSMigartion to AWS
Migartion to AWS
 
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
 
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
 
AWS Transfer Family SFTP and FTPS
AWS Transfer Family SFTP and FTPSAWS Transfer Family SFTP and FTPS
AWS Transfer Family SFTP and FTPS
 
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
 
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
 
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight
[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight
 
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...
AWS Black Belt Online Seminar 2018 re:Invent 2017 Recap Machine Learning / Da...
 
Jawsdays2021 preday
Jawsdays2021 predayJawsdays2021 preday
Jawsdays2021 preday
 
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
 
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
 
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...
[最新版(12/5 最新版) が別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar A...
 
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
 
20170826 Oita JAWS
20170826 Oita JAWS20170826 Oita JAWS
20170826 Oita JAWS
 
AWS 資格試験対策講座
AWS 資格試験対策講座AWS 資格試験対策講座
AWS 資格試験対策講座
 
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
 
20201125 EC Solution Seminar Notification
20201125 EC Solution Seminar Notification20201125 EC Solution Seminar Notification
20201125 EC Solution Seminar Notification
 

Similar to AWS Nightschool20180618

20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...
20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...
20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...Amazon Web Services Japan
 
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatch20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatchAmazon Web Services Japan
 
Security Operations and Automation on AWS
Security Operations and Automation on AWSSecurity Operations and Automation on AWS
Security Operations and Automation on AWSNoritaka Sekiyama
 
Amazon Kinesis Familyを活用したストリームデータ処理
Amazon Kinesis Familyを活用したストリームデータ処理Amazon Kinesis Familyを活用したストリームデータ処理
Amazon Kinesis Familyを活用したストリームデータ処理Amazon Web Services Japan
 
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法Amazon Web Services Japan
 
Best Practices for Running PostgreSQL on AWS
Best Practices for Running PostgreSQL on AWSBest Practices for Running PostgreSQL on AWS
Best Practices for Running PostgreSQL on AWSAmazon Web Services Japan
 
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...Amazon Web Services Japan
 
AWS 主要なサービスアップデート 6/3-11/28
AWS 主要なサービスアップデート 6/3-11/28AWS 主要なサービスアップデート 6/3-11/28
AWS 主要なサービスアップデート 6/3-11/28崇之 清水
 
20180313 Amazon Container Services アップデート
20180313 Amazon Container Services アップデート20180313 Amazon Container Services アップデート
20180313 Amazon Container Services アップデートAmazon Web Services Japan
 
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...Amazon Web Services Japan
 
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonightAmazon Web Services Japan
 
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...Amazon Web Services Japan
 
AWS Black Belt Online Seminar 2018 動画配信 on AWS
AWS Black Belt Online Seminar 2018 動画配信 on AWSAWS Black Belt Online Seminar 2018 動画配信 on AWS
AWS Black Belt Online Seminar 2018 動画配信 on AWSAmazon Web Services Japan
 
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティングAmazon Web Services Japan
 
Amazon EC2を使った実践SaaS運用事例
Amazon EC2を使った実践SaaS運用事例Amazon EC2を使った実践SaaS運用事例
Amazon EC2を使った実践SaaS運用事例Yuuki Namikawa
 
20190122 AWS Black Belt Online Seminar Amazon Redshift Update
20190122 AWS Black Belt Online Seminar Amazon Redshift Update20190122 AWS Black Belt Online Seminar Amazon Redshift Update
20190122 AWS Black Belt Online Seminar Amazon Redshift UpdateAmazon Web Services Japan
 
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2Serverless backendformobilegame and_aws-appsync_gamingtechnight-2
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2Amazon Web Services Japan
 
AWS Black Belt Online Seminar 2018 AWS Well-Architected Framework
AWS Black Belt Online Seminar 2018 AWS Well-Architected FrameworkAWS Black Belt Online Seminar 2018 AWS Well-Architected Framework
AWS Black Belt Online Seminar 2018 AWS Well-Architected FrameworkAmazon Web Services Japan
 

Similar to AWS Nightschool20180618 (20)

20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...
20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...
20190410 AWS Black Belt Online Seminar Amazon Elastic Container Service for K...
 
AWS All Stars ~Lightning Talks x 13~
AWS All Stars ~Lightning Talks x 13~AWS All Stars ~Lightning Talks x 13~
AWS All Stars ~Lightning Talks x 13~
 
20191125 Container Security
20191125 Container Security20191125 Container Security
20191125 Container Security
 
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatch20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
 
Security Operations and Automation on AWS
Security Operations and Automation on AWSSecurity Operations and Automation on AWS
Security Operations and Automation on AWS
 
Amazon Kinesis Familyを活用したストリームデータ処理
Amazon Kinesis Familyを活用したストリームデータ処理Amazon Kinesis Familyを活用したストリームデータ処理
Amazon Kinesis Familyを活用したストリームデータ処理
 
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法
20180619 AWS Black Belt Online Seminar データレイク入門: AWSで様々な規模のデータレイクを分析する効率的な方法
 
Best Practices for Running PostgreSQL on AWS
Best Practices for Running PostgreSQL on AWSBest Practices for Running PostgreSQL on AWS
Best Practices for Running PostgreSQL on AWS
 
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
 
AWS 主要なサービスアップデート 6/3-11/28
AWS 主要なサービスアップデート 6/3-11/28AWS 主要なサービスアップデート 6/3-11/28
AWS 主要なサービスアップデート 6/3-11/28
 
20180313 Amazon Container Services アップデート
20180313 Amazon Container Services アップデート20180313 Amazon Container Services アップデート
20180313 Amazon Container Services アップデート
 
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
 
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
 
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
 
AWS Black Belt Online Seminar 2018 動画配信 on AWS
AWS Black Belt Online Seminar 2018 動画配信 on AWSAWS Black Belt Online Seminar 2018 動画配信 on AWS
AWS Black Belt Online Seminar 2018 動画配信 on AWS
 
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング
20180710 AWS Black Belt Online Seminar AWS入門者向け: AWSで実現するウェブサイトホスティング
 
Amazon EC2を使った実践SaaS運用事例
Amazon EC2を使った実践SaaS運用事例Amazon EC2を使った実践SaaS運用事例
Amazon EC2を使った実践SaaS運用事例
 
20190122 AWS Black Belt Online Seminar Amazon Redshift Update
20190122 AWS Black Belt Online Seminar Amazon Redshift Update20190122 AWS Black Belt Online Seminar Amazon Redshift Update
20190122 AWS Black Belt Online Seminar Amazon Redshift Update
 
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2Serverless backendformobilegame and_aws-appsync_gamingtechnight-2
Serverless backendformobilegame and_aws-appsync_gamingtechnight-2
 
AWS Black Belt Online Seminar 2018 AWS Well-Architected Framework
AWS Black Belt Online Seminar 2018 AWS Well-Architected FrameworkAWS Black Belt Online Seminar 2018 AWS Well-Architected Framework
AWS Black Belt Online Seminar 2018 AWS Well-Architected Framework
 

More from Kameda Harunobu

Sapporo devfesta 2019/11/13
Sapporo devfesta 2019/11/13Sapporo devfesta 2019/11/13
Sapporo devfesta 2019/11/13Kameda Harunobu
 
20180123 20分でlive配信aws media services(media live mediapackage)_pub
20180123 20分でlive配信aws media services(media live mediapackage)_pub20180123 20分でlive配信aws media services(media live mediapackage)_pub
20180123 20分でlive配信aws media services(media live mediapackage)_pubKameda Harunobu
 
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編Kameda Harunobu
 
Migration to aws as of 20170920
Migration to aws as of 20170920Migration to aws as of 20170920
Migration to aws as of 20170920Kameda Harunobu
 

More from Kameda Harunobu (6)

Sapporo devfesta 2019/11/13
Sapporo devfesta 2019/11/13Sapporo devfesta 2019/11/13
Sapporo devfesta 2019/11/13
 
Aws handson 20181108
Aws handson 20181108Aws handson 20181108
Aws handson 20181108
 
JAWS FESTA 2018
JAWS FESTA 2018JAWS FESTA 2018
JAWS FESTA 2018
 
20180123 20分でlive配信aws media services(media live mediapackage)_pub
20180123 20分でlive配信aws media services(media live mediapackage)_pub20180123 20分でlive配信aws media services(media live mediapackage)_pub
20180123 20分でlive配信aws media services(media live mediapackage)_pub
 
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編
Word press preinstall-iam対応版-aws体験ハンズオン-セキュア&スケーラブルウェブサービス構築編
 
Migration to aws as of 20170920
Migration to aws as of 20170920Migration to aws as of 20170920
Migration to aws as of 20170920
 

AWS Nightschool20180618

  • 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 亀田 治伸 アマゾン ウェブ サービス ジャパン株式会社 プロダクトマーケティング エバンジェリスト AWS Night School
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 本セッションのAgenda • Amazon Web Services (AWS)の基本コンセプト • リージョンとアベイラビリティゾーン • Amazon Elastic Compute Cloud (EC2) と Elastic Blok Store (EBS) • Amazon Simple Storage Service (S3) • Amazon Virtual Private Cloud (VPC) • セキュリティ、アイデンティティ、アクセス管理 • Amazon Identity and Management (AWS IAM) • Amazon Relational Database Service (RDS) • スケーラビリティを実現するサービス • Auto Scaling、Elastic Load Balancing、Amazon CloudWatch
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Our Vision: 地球上で、最もお客さまを 大切にする企業であること。
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSの機能改善、イノベーションのスピード 24 48 61 82 160 280 516 722 1,017 1,430 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 品揃え 顧客体験 顧客数 出店社 低コスト体質・構造 低価格 成 長
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. (*) お客さまとは、アクティブカスタマー数を指します。 アクティブカスタマーとは、AWSクラウド無料利用枠を含むAWSアカウントの先月の使用状況のあるアマゾン会員でない対象アカウントです。 数百万を超えるお客様 2 0 1 2 2 0 1 3 2 0 1 5 2 0 1 72 0 1 4 2 0 1 62 0 0 8 2 0 0 9 2 0 1 0 2 0 11 T O D AY
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 日本で10万以上のお客様
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSのグローバルインフラストラクチャ 18のリージョン, 1のローカルリージョン, 55のアベイラビリティーゾーン, 100+のエッジロケーション AWS GovCloud (3) ※カッコ内の数はアベイラビリティゾーン 米国西部 オレゴン (3)、北カリフォルニア (3) 米国東部 バージニア北部 (6)、オハイオ (3) カナダ 中部 (2) 南米 サンパウロ (3) 欧州 アイルランド (3)、フランクフルト (3)、ロンドン (3)、パリ (3) アジアパシフィック シンガポール (3)、シドニー (3)、東京 (4)、大阪(1)(*)、ソウル (2)、ムンバイ (2) 中国 北京 (2)、寧夏 (3) (*) 大阪ローカルリージョン 新しいリージョン (近日追加予定) バーレーン 中国香港特別行政区 スウェーデン AWS GovCloud (米国東部) (As of May, 2018)
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS利用料の一般的な内訳例 ・通常「仮想サーバ/データベース」が 毎月のご利用料金の9割程度を占めるケースが多い EC2 RDS データ転送量 その他 通常の ご利用料金 内訳例 EC2 RDS データ転送量 その他 動画配信 特殊なご利用料金内訳例
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Billing Alert(請求アラーム) 利用状況を監視し、閾値を越えたら通知することが可能 • 閾値を越えたらSimple Notification Service(SNS)にて通知 • SNSの機能により、EメールやHTTP/HTTPS等での通知
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. リージョンとアベイラビリティゾーン
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSのグローバルインフラストラクチャ 18のリージョン, 1のローカルリージョン, 55のアベイラビリティーゾーン, 100+のエッジロケーション AWS GovCloud (3) ※カッコ内の数はアベイラビリティゾーン 米国西部 オレゴン (3)、北カリフォルニア (3) 米国東部 バージニア北部 (6)、オハイオ (3) カナダ 中部 (2) 南米 サンパウロ (3) 欧州 アイルランド (3)、フランクフルト (3)、 ロンドン (3)、パリ (3) アジアパシフィック シンガポール (3)、シドニー (3)、東京 (4)、 大阪(1)(*)、ソウル (2)、ムンバイ (2) 中国 北京 (2)、寧夏 (3) 新しいリージョン (近日追加予定) バーレーン 中国香港特別行政区 スウェーデン AWS GovCloud (米国東部) (As of May, 2018)
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. リージョンとアベイラビリティゾーン(AZ) AZ AZ AZ AZ AZ Transit Transit Data Center Data Center Data Center Data Center  アベイラビリティゾーン(AZ):データセンター群  1つのAZは、最低1ヶ所以上のデータセンターで構成  リージョンは2つ以上のAZから構成  各AZは、互いに影響を受けないように独立  AZ間は低遅延の高速専用線で接続 • 物理的に離れた場所に設置 • 洪水を考慮 • 地盤が安定している場所に設置 • 無停止電源(UPS)、バックアップ電源、異なる 電源供給元 • 冗長化されたTier-1ネットワーク
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSの1つのリージョンは必ず2つ以上のAvailability Zoneで構成されており、東京リージョンには2 つのAvailability で構成されています。Zoneがあります。Availability Zoneは必ず1つ以上のデー タセンター Availability Zone A Availability Zone B リージョン AWSの可用性に対する基本的な考え方 は、Multi-Availability Zone、つま り、 「データセンターレベルで単一障害点を失 くす」というものです。 これにより、貴社サービスの可用性は格段 に向上します。 1ms 程度 Availability Zone Concept
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 と EBS
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 Amazon Elastic Compute Cloud (EC2) • サイズ変更可能なコンピューティング処理能力 • 新しいサーバーインスタンスの取得と起動に 要する時間を分単位に短縮
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 の特徴 • コンピューティング要件の変化に応じて キャパシティーを拡大/縮小可能 • お支払いは実際に使用したキャパシティー分のみ • Linux または Windows の選択 • 複数の AWS リージョンおよびアベイラビリティ ーゾーンにまたがったデプロイで信頼性を向上
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 インスタンスの起動 1. AMAZON EC2 インスタンスを起動する AWS リージョンを決定 2. 事前設定されている Amazon Machine Image (AMI) から Amazon EC2 インスタンスを起動 3. CPU、メモリ、ストレージ、ネットワーク要件に基づいて インスタンスタイプを選択 4. ネットワーク IP アドレス、セキュリティグループ、 ストレージボリューム、キーペアを設定
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスと AMI 以下に基づいて AMI を選択: • AWSにより準備されたもの • コミュニティAMI • ユーザー独自AMI • 全ユーザー共有 • 特定ユーザー共有 AMI インスタンス インスタンス 任意のタイプ のインスタン スを起動 ホストコンピュータ ホストコンピュータ
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 インスタンス OS、アプリケー ション、設定 AMI 実行中または停 止された VM インスタンス AZ VPC リージョン EBS S3 EBS スナッ プショット EBS EBS EBS EBS EBS AZ インスタンス インスタンス
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスタイプとは
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 現行世代のインスタンス
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスのユーザーデータ
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスのユーザーデータ インスタンスユーザーデータ: 起動時にインスタンスに渡すことができる 一般的な自動化された設定タスクを実行するために使用できる インスタンス起動後にスクリプトを実行する インスタンス起動時に、ユーザーデータを指定可能 ユーザーデータの種類: Linux スクリプト – cloud-init により実行される Windows バッチまたは PowerShell スクリプト
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ユーザーデータの例: Linux #!/bin/sh yum -y install httpd chkconfig httpd on /etc/init.d/httpd start ユーザーデータのシェルスクリプトは #! の記 号とスクリプトを読み取るインタープリタのパ スが最初に付いている必要がある Apache ウェブサーバーをイン ストールする ウェブサーバーを有効にする ウェブサーバーを起動する
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ユーザーデータの例: Windows <powershell> Import-Module ServerManager Install-WindowsFeature web-server, web-webserver Install-WindowsFeature web-mgmt-tools </powershell> Windows PowerShell の Server Manager モジュールを インポートする IIS をインストールする ウェブ管理ツールをインス トールする
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 インスタンスストアと Amazon EBS Amazon EC2 インスタンスストア • ローカルのインスタンスストアに保存されたデータは、 インスタンスの有効期間のみ保持される • ストレージは一時的 Amazon EBS • Amazon EBS ボリュームに保存されるデータは、 インスタンスの有効期間とは関係なく保持される • ストレージは永続的
  • 29. EC2 Management ServicesEBS Storage EC2 Hosts EC2 Software Customer Instances AMAZON EC2 ARCHITECTURE Fast, inexpensive, fault-tolerant network
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Elastic Block Store (EBS) • 一貫性のある低レイテンシーのパフォーマンスを提供する永続的 なブロックレベルのストレージボリューム • アベイラビリティーゾーン内で自動的にレプリケート • Amazon S3 にスナップショットを安全に保存 Amazon EBS
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS の特徴 • 作成可能なもの: • 1 GiB~1 TiB の EBS マグネティックボリューム • 最大 16 TiB の EBS 汎用 (SSD) ボリュームおよびプロビジョンド IOPS (SSD) ボリューム • 暗号化された EBS ボリュームを利用することにより、規制/監査デー タやアプリケーションに関して、保管データの幅広い暗号化要件に対 応可能 • EBS ボリュームの特定の時点におけるスナップショットを作成して、 Amazon S3 に永続的に保管可能
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ほんとうに数分で起動するのか やってみましょう!
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスメタデータ 実行中のインスタンスですべてのインスタンスメタデータの カテゴリを表示する場合に使用する URI: http://169.254.169.254/latest/meta-data/ Linux インスタンスの場合: • $ curl http://169.254.169.254/latest/meta-data/ すべてのメタデータがテキストとして 返される (コンテンツタイプ: text/plain)
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスのライフサイクル AMI pending 起動 running terminated shutting-down 終了 停止 stoppingrebooting 再起動 開始 終了 stopped
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスのライフサイクル AMI pending 起動 running terminated shutting-down 終了 停止 stoppingrebooting 再起動 開始 終了 stopped インスタンスタイプの 変更
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Webサイトのデータはどこに保存する? ユーザ 情報 商品画像 データ 商品情報 在庫情報 ショッピング カート セッション情報
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. データストア = データを保存する場所 ポイント: データの種類に応じて適切なデータストアを選択 サーバー ローカル ストレージ サーバー ローカル ストレージ 共有 ストレージ データベース (RDBMS) データベース(NoSQL) サーバ自身からしか アクセスできない 複数のサーバから アクセスできる App App ・ショッピングカート ・セッション情報 ・ユーザ情報 ・商品情報 ・在庫情報 ・商品画像データ
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Simple Storage Service (S3) Amazon S3 インターネット対応のストレージ 常にオンラインで HTTP でアクセス可能 どのような量でも、データの保存、取り出しをいつでも、 ウェブ上のどこからでも実行可能 優れたスケーラビリティ、信頼性、耐久性 お預かりした分のみの従量課金 EBSに比べて10倍以上の費用対効果
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 の概念 • Amazon S3 では、データがオブジェクトとして バケットに保存される • オブジェクトは、ファイルと、そのファイルについて 説明する任意のメタデータ (省略可能) で構 成される • バケットとそのオブジェクトのアクセスログを制御で きる • ファイルの世代管理・保存に対応 Amazon S3 オブジェクトが保 存されたバケット バケット オブジェクト
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 の特徴 バケットに無制限のオブジェクトを保存可能 最大 5 TB のオブジェクトを保存可能。バケットのサイズ制限なし 年間 99.999999999% のオブジェクト耐久性と、99.99% の オブジェクト可用性を提供するように設計 HTTPS エンドポイントを提供可能 オブジェクトの暗号化をサポート 監査のためのアクセスログ 標準ベースの REST インターフェイスを提供
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. オブジェクトキー オブジェクトキーとは、バケット内の オブジェクトが持つ一意の識別子 https://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html バケット オブジェクトキー
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 のセキュリティ 以下により、バケットとそのオブジェクトの アクセスを制御可能: • アクセスコントロールリスト (ACL) • バケットポリシー • Identity and Access Management (IAM) ポリシー SSL で暗号化されたエンドポイント経由で Amazon S3 にデータをア ップロードまたはダウンロード AWS SDK を使用してデータを暗号化
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 バージョニング パフォーマンスに影響を与えずに偶発的な上書きや削除から保護する アップロードごとに新しいバージョンを生成する 削除されたオブジェクトの取得や以前のバー ジョンへのロールバックが可能 Amazon S3 バケットの 3 種類の状態: • バージョニング無効 (デフォルト) • バージョニング有効 • バージョニング一時停止 バージョニング有効 Key: photo.gif ID: 121212 Key: photo.gif ID: 111111
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Glacier 低コストの長期アーカイブサービス 低頻度アクセスのデータに最適 99.999999999% の耐久性を実現するように設計 取り出し時間: 3~5 時間 S3に比べて約1/3のコスト
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ストレージクラスの選択 オブジェクトにリアルタイム(待ち時間なし)の アクセスが必要? オブジェクトへの アクセス頻度が高い? S3-標準 GBあたり料金: $$$ 可用性: 99.99% S3 標準-低頻度アクセス(IA) GBあたり料金: $$ 可用性: 99.9% Glacier GBあたり料金: $ 可用性: 99.99%(復元後) No (取り出し・復元に3-5時間 かかってもよい) Yes Yes No (取り出しに料金が かかってもよい)
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Glacier ライフサイクルポリシー Amazon S3 のライフサイクルポリシーを利用することで、保存期間に 基づいてオブジェクトを削除または移動できる Amazon S3 標準 Amazon S3 標準 – 低頻度 アクセス 30 日間 60 日間 Preview2.mp4 Preview2.mp4 Preview2.mp4
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3とEC2、EBSの違い・使い分け S3バケット EC2 EC2 ロードバランサー(ELB) EBS EBS ファイルを アップロード トラフィックを 分散 →左のサーバへ
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3とEC2、EBSの違い・使い分け S3バケット EC2 EC2 ロードバランサー(ELB) EBS EBS アップロードされ たファイルはS3 に保存する
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Virtual Private Cloud (VPC) AWS クラウドの隔離されたプライベート仮想ネ ットワークをプロビジョニングする 仮想ネットワーク環境を完全に制御できる Amazon VPC AWS クラウドの隔離されたプライベート仮想ネ ットワークをプロビジョニングする 仮想ネットワーク環境を完全に制御できる
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC とサブネット サブネットは大きく2つに分割する • プライベートサブネット:インターネット経由でアクセスできないリソースに使用 • パブリックサブネット:インターネット経由でアクセスできるリソースに使用 各サブネットは 1 つのアベイラビリティーゾーン内に作成する。複数のゾ ーンにまたがるサブネットを作成することはできない
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン アベイラビリティゾーン Public サブネット Private サブネット Public サブネット Private サブネット アベイラビリティゾーン
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン アベイラビリティゾーン インターネットゲートウェイ Public サブネット Private サブネット Public サブネット Private サブネット アベイラビリティゾーン
  • 56. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン Web DB アベイラビリティゾーン インターネットゲートウェイ Public サブネット Private サブネット Public サブネット Private サブネット アベイラビリティゾーン
  • 57. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン Web DB アベイラビリティゾーン インターネットゲートウェイ Public サブネット Private サブネット Public サブネット Private サブネット アベイラビリティゾーン
  • 58. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC の例 インターネット リージョン Web DB アベイラビリティゾーン インターネットゲートウェイ Public サブネット Private サブネット Public サブネット Private サブネット 顧客 オンプレミス環境 VPN ゲートウェイ アベイラビリティゾーン
  • 59. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPCのネットワーク制御機能 ファイアウォール • 通信を通す・通さないの制御をおこなう • セキュリティグループ/ネットワークACL ネットワークの経路制御 • VPC内もしくはVPCの内外の通信経路を設定する • ルートテーブル インターネットとの通信 • VPC内とインターネット間で通信が可能 • インターネットゲートウェイ オンプレミス環境との接続 • VPC内とオンプレミス環境間で通信が可能 • Direct Connect/VPN
  • 60. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ファイアウォール セキュリティグループ ネットワーク アクセスコントロール リスト (ACL) サブネット 10.0.0.0/24 サブネット 10.0.1.0/24 インターネットゲートウェイVPN ゲートウェイ VPC ルーター 10.0.0.0/16 セキュリティグループ セキュリテ ィグループ セキュリテ ィグループ ネットワーク ACL ネットワーク ACL ルーティングテーブル ルーティングテーブル インス タンス インス タンス インス タンス インス タンス
  • 61. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web層 セキュリティ グループ セキュリティグループ:機能別のセキュリティ AP層 セキュリティ グループ DB層 セキュリティ グループ
  • 62. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. セキュリティ、アイデンティティ アクセス管理
  • 63. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 責任共有モデル – AWS AWS クライアント側のデータ暗号化とデータの 整合性認証 サーバー側の暗号化 (ファイルシステムおよびデータ) ネットワークトラフィックの保護 (暗号化/整合性/アイデンティティ) プラットフォーム、アプリケーション、アイデンティティとアクセスの管理 オペレーティングシステム、ネットワーク、ファイアウォール設定 お客様のデータ お客様 基盤サービス コンピューティング ストレージ データベース ネットワーク AWS グローバルインフラ ストラクチャ リージョン アベイラビリティーゾーン エッジロケーション
  • 64. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 認証と認定 ISO 9001、ISO 27001、ISO 27017、ISO 27018、IRAP (オーストラリア)、 MLPS Level 3 (中国)、MTCS Tier 3 Certification (シンガポール) など
  • 65. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS利用におけるセキュリティ確保の全体像 コマンドライン/ SDK キーペア による認証 セキュリティグループによる インスタンスの通信保護 仮想デスクトップ ターミナル アクセスキーID シークレットキー によるAPIの認証 マネジメントコンソール EBS EBS EC2 (Linux) EC2 (Windows) IAMユーザID Password による認証 AWSAPI マネジメント コンソール VPCによる ネットワークの通信保護 SSL SSL SSH RDP IAM
  • 66. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. IAMの概要 {メールアドレス、パスワード}ルートアカウント =管理者 IAMユーザ {ユーザー名、パスワード} IAMグループ P P
  • 67. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. IAMの概要 {メールアドレス、パスワード}ルートアカウント =管理者 IAMユーザ {ユーザー名、パスワード} IAMグループ P P IAMロール P EC2 ユーザ App
  • 68. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. インスタンスメタデータ (再掲) 実行中のインスタンスですべてのインスタンスメタデータの カテゴリを表示する場合に使用する URI: http://169.254.169.254/latest/meta-data/ Linux インスタンスの場合: • $ curl http://169.254.169.254/latest/meta-data/ すべてのメタデータがテキストとして 返される (コンテンツタイプ: text/plain)
  • 69. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM ロール – インスタンスプロファイル Amazon EC2 アプリケーション & EC2 MetaData Service http://169.254.169.254/latest/meta-data/iam/security-credentials/rolename Amazon S3 1 2 3 4 インスタン スの作成 IAMロールの選択 S3とやり取りする アプリケーション
  • 70. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM 認証 認証 AWS マネジメントコンソール • ユーザー名とパスワード IAM ユーザー
  • 71. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM 認証 認証 AWS CLI または SDK API • アクセスキーとシークレットキー アクセスキー ID: AKIAIOSFODNN7EXAMPLE シークレットアクセスキー: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Java Python .NET AWS SDK および APIAWS CLI IAM ユーザー
  • 72. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM 認可 認可 ポリシー: • 権限を記述している JSON ドキュメント • ユーザー、グループ、 ロールに割り当てられる IAM ユーザー IAM グループ IAM ロール
  • 73. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM ポリシー { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1453690971587", "Action": [ "ec2:Describe*", "ec2:StartInstances", "ec2:StopInstances” ], "Effect": "Allow", "Resource": "*", "Condition": { "IpAddress": { "aws:SourceIp": "54.64.34.65/32” } } }, { "Sid": "Stmt1453690998327", "Action": [ "s3:GetObject*” ], "Effect": "Allow", "Resource": "arn:aws:s3:::example_bucket*” } ] } IAM ポリシー
  • 74. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM ポリシーを割り当てる IAM ユーザー IAM グループ IAM ロール 割り当てる 割り当てる 割り当てる IAM ポリシー
  • 75. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IAM ロール – ロールを引き受ける IAM 制限ポリシー IAM ユーザー A-1 AWS アカウント A IAM Admin Role IAM 管理者ポリシー 割り当てる 引き受ける 割り当てる 1 2 IAM ユーザー B-1 AWS アカウント B Amazon S3 引き受ける 4 アクセス 53 アクセス 1
  • 76. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS
  • 77. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Relational Database Service (RDS) Amazon RDS コスト効率に優れ、サイズ変更が可能なキャパシティー 時間のかかるデータベース管理タスクが不要 Amazon Aurora、MySQL、MariaDB、 Microsoft SQL Server、Oracle、および PostgreSQL の各データベースを利用可能
  • 78. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. マネージド型サービスの利点とは? 電源、HVAC、ネット ラックおよびスタック サーバーメンテナンス OS パッチ DB ソフトウェアパッチ データベースのバックアップ スケーリング 高可用性 DB ソフトウェアのインストール OS のインストール アプリケーションの最適化 データベースをオンプレミス で構築する場合 電源、HVAC、ネット ラックおよびスタック サーバーメンテナンス OS のインストール お客様 OS パッチ DB ソフトウェアパッチ データベースのバックアップ スケーリング 高可用性 DB ソフトウェアのインストール アプリケーションの最適化 アプリケーションの最適化 AWS お客様 データベースをEC2に 構築する場合 電源、HVAC、ネット ラックおよびスタック サーバーメンテナンス OS パッチ DB ソフトウェアパッチ データベースのバックアップ 高可用性 DB ソフトウェアのインストール OS のインストール スケーリング お客様 AWS RDSを利用する場合
  • 79. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS シンプルかつ迅速なデプロイ 一般的なデータベース管理タスクの処理 アプリケーションとの互換性 シンプルかつ迅速にスケール 安全 コスト効率
  • 80. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DB インスタンス DB インスタンスは Amazon RDS の基本構成要素である DB インスタンスは、クラウド内の独立したデータベース環境である DB インスタンスには、複数のユーザーが作成したデータベースを含める ことができる
  • 81. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS バックアップの使用方法 自動バックアップ: • データベースを特定時点まで復元 する(5分間隔) • デフォルトで有効 • 最大 35 日間までの保持期間を 選択できる 手動スナップショット: • スナップショットから新しいデータベー スインスタンスを作成できる • ユーザーによって開始される • ユーザーによって削除されるまで持 続される • Amazon S3 に保存される
  • 82. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. クロスリージョンスナップショット 別の AWS リージョンに保 存されているデータ ベーススナップショットのコピ ーである 災害対策のためのバックア ップを提供する 別のリージョンに移行するた めの基礎として使用できる
  • 83. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS のセキュリティ • Amazon VPC で DB インスタンスを実行する • IAM ポリシーを使用して Amazon RDS リソースへのアクセスを許可する • セキュリティグループを使用する • DB インスタンス (Amazon Aurora、Oracle、MySQL、MariaDB、PostgreSQL、 Microsoft SQL Server) には Secure Socket Layer (SSL) 接続を使用する • 実行環境及び保管時の RDS DB インスタンスとスナップショットを保護するには、Amazon RDS の暗号化を使用する • Oracle DB インスタンスおよび Microsoft SQL Server インスタンスではTransparent Data Encryption (TDE) を使用可能 • DB エンジンのセキュリティ機能を使用して、DB インスタンスへのアクセスを制御する
  • 84. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. EC2との違い スケーラビリティ Amazon RDS データベース インスタンス: マスターおよびマルチ AZ ス タンバイ アプリケーション (Amazon EC2 インスタ ンス内) Elastic Load Balancing ロードバランサーイン スタンス Amazon S3 に取得した DB スナップショット
  • 85. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. RDS のマルチ AZ 配置 マルチ AZ の動作により、データベースは同じ AWS リージョ ン内の別の AZ に同期的にレプリケートされる マスターデータベースに障害が発生した場合は、自動的にス タンバイに対してフェイルオーバーを行う 計画されたメンテナンスをまずスタンバイデータベースに適 用
  • 86. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. EC2との違い スケーラビリティ Amazon RDS データベース インスタンス: マスターおよびマルチ AZ ス タンバイ アプリケーション (Amazon EC2 インスタ ンス内) Elastic Load Balancing ロードバランサーイン スタンス
  • 87. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS for Aurora 特徴 (http://aws.amazon.com/jp/rds/aurora/) • MySQL5.6とPostgreSQL 9.6に互換性あり • 3AZに6本のディスクに書き込み2本のディスク障害 ではRead/Write可能。3本のディスク障害でも Read可能 • キャシュとログをAuroraプロセスから分離することで Auroraプロセスのリスタートでもキャッシュが残る • レプリケーション遅延は10-20ms程 • 64TBまでディスクがシームレスにスケールする Amazonがクラウド時代に再設計したデータベース
  • 88. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auroraのストレージ SSDを利用したシームレスに スケールするストレージ • 64TBまで自動的にスケール 標準で高可用性を実現 • 2つのコピー障害時でも読み書きに問題なし • 3つのコピー障害時でも読み込み可能 • 継続的なS3へのバックアップ リードレプリカもマスタと同じストレージを 参照 • レプリケーション遅延は10ms-20ms SQL Transactions AZ 1 AZ 2 AZ 3 Caching Amazon S3 SQL Transactions Caching
  • 89. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auroraのレプリケーション MySQL read scaling •レプリケーションにはbinlog / relay logが必要 •レプリケーションはマスターへ負荷がかかる •レプリケーション遅延が増加していくケースがある •フェイルオーバでデータロスの可能性がある Aurora Master 30% Read 70% Write Aurora Replica 100% New Reads Shared Multi-AZ Storage MySQL Master 30% Read 70% Write MySQL Replica 30% New Reads 70% Write シングルスレッドで Binlog適用 Data Volume Data Volume Amazon Aurora read scaling • Binlogによるレプリケーションではない • マスターへの負荷を最小限に15台までリードレプリカを 作成可能 • 10-20ms程度のレプリケーション遅延 • フェイルオーバでデータロスが無い PAGE CACHE UPDATE
  • 90. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. クラスタエンドポイント Availability Zone A Availability Zone B VPC subnet VPC subnet VPC subnet VPC subnet Aurora Writer Aurora Reader クラスタエンドポイント • 各Auroraノードは個別に エンドポイントを持っている • クラスタエンドポイントは、 その時アクティブな Aurora Writerノードの CNAME • Readは読み込みエンドポ イントを参照する Write
  • 91. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. クラスタエンドポイント Availability Zone A Availability Zone B VPC subnet VPC subnet VPC subnet VPC subnet Aurora Writer Aurora Reader クラスタエンドポイント Write • フェイルオーバが発 生すると、Aurora ノードの昇格が行わ れ、クラスタエンド ポイントの指し先が 変わる
  • 92. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 使いどころ Amazon Auroraに移行することで、クエリスループットの向上などが見 込まれる • マルチコア環境でCPUを効率的に利用 • 分散ロック機構やQuery Cacheの改善による性能向上 ディスク • データ量の増加に応じてディスク容量を気にする必要が無い • 性能に影響を及ばさずバックアップ
  • 93. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. スケーラビリティを実現するサービス
  • 94. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon.com の典型的な週間トラフィック 日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日 用意したキャパシティー
  • 95. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon.com の 11 月のトラフィック 用意したキャパシティー 11 月 76% 24%
  • 96. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. スケーラビリティ 11 月
  • 97. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ベストプラクティス: スケーラビリティを確保する ベストプラクティス アラームのしきい値に達 したアプリケー ションサーバー Auto Scaling が アラームを受信し、スケ ールアウトする キャパシティーが 上限に到達する前に、新し いサーバーの 準備が整っている ユーザーの アクセスが 中断されることはな い そのアーキテクチャが 需要の変化に 対応できるようにする クラウドベースのインフラストラクチャの大きな メリットの 1 つは、リソースの需要の変化に 迅速に対応できること
  • 98. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling • Amazon EC2 のキャパシティーを自動的 にスケーリング • 使用量が変動するアプリケーションに最適 • 追加料金なしで使用可能 Auto Scaling
  • 99. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 連携する 3 つのサービス レイテンシー (遅延時間)を モニタリング CloudWatchAuto Scaling Elastic Load Balancing Auto Scaling グループ Auto Scalingの ポリシーを実行 多数のユーザー
  • 100. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling の利点 コスト管理の強化可用性の向上耐障害性の向上
  • 101. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling グループ • EC2 インスタンスの集合 • Auto Scaling グループ内のインスタンスは、インスタンスのスケ ーリングと管理のための論理グループとして扱われる 最小サイズ 希望するキャパシティー 最大サイズ 必要に応じてスケ ールアウト Auto Scaling グループ
  • 102. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Load Balancing(ELB) • 複数のインスタンスにトラフィックを分散 • 正常に動作していない EC2 インスタンスを検出して 除去するためのヘルスチェックをサポート • EC2 インスタンスへの HTTP、HTTPS、および TCP トラフィックのルーティングと負荷分散をサポート Elastic Load Balancing
  • 103. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ロードバランサーのタイプ アベイラビリティー ゾーン A アベイラビリティー ゾーン B EC2EC2 インターネット接続 EC2EC2 TCP/UDP EC2EC2 内部 EC2 EC2 パブリック パブリック プライベートプライベート ロードバランサー ロードバランサー ロードバランサー
  • 104. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudWatch • AWS クラウドリソースと AWS でお客様が実行する アプリケーションのモニタリングサービス • リソース使用率、動作パフォーマンス、全体的な リソース消費パターンを可視化 • アプリケーション専用にカスタマイズされたユーザー独自の メトリックスを定義可能 • AWS マネジメントコンソール、API、SDK、CLI から アクセス可能 Amazon CloudWatch
  • 105. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudWatch の特徴 他の AWS リソースをモニタリング •グラフと統計を表示 アラームの設定
  • 106. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudWatch のアーキテクチャ CloudWatch 対応 AWS リソース Amazon CloudWatch Amazon CloudWatch アラーム SNS E メール通知 Auto Scaling 利用でき る統計 統計情報コン シューマー AWS マネジメ ントコンソール CloudWatch メトリックス CPUUtilization StatusCheckFailed 独自のアプリケー ション専用メト リックス PageViewCount
  • 107. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudWatch Events CloudWatch Events Snapshotコード実行 特徴  AWSの様々なリソースに対するイベントをトリガーにアクション を実行  例) 特定ユーザーがログインしたらLambda関数の実行  スケジュールベースでのアクションも可能  EBSスナップショットの定期取得などのBlueprintを用意  イベント、ターゲット、ルールで定義 AWSの様々なリソースの変更を リアルタイムに検知・アクション