87
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved. ©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved. 今更聞けない AWS クラウド入門 アマゾンデータサービスジャパン株式会社 ソリューションアーキテクト 小林正人 テクノロジートラック

今更聞けない AWS クラウド入門 · “awsとは”何かご理解いただけたと思います それではより具体的な内容に入っていきましょう! ©2014,

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

今更聞けない AWS クラウド入門

アマゾンデータサービスジャパン株式会社

ソリューションアーキテクト 小林正人

テクノロジートラック

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Thank You!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

フィードバックをお寄せ下さい

本イベントについてツイートされる際は、ハッシュタグをご利用ください。

#AWSRoadshow

お帰りになる前には、アンケートへのご協力をお願いします。引換用の記念品をご用意しています。

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

名前:

・小林 正人/ ソリューションアーキテクト

役割:

・エンタープライズのお客様を担当

・AWSの利用にまつわる技術支援をご提供

自己紹介

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

セッションタイトル『今更聞けない AWS クラウド入門』

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

初期のAmazon.com

amazon.com, 1995

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

amazon.com, 2014

現在のAmazon.com

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

長年にわたるAmazon.comのITインフラ運用ノウハウをサービスに!

2006年 AWSサービス開始

2011年 Tokyoリージョンサービス開始

Amazonのビジネスモデル

創業者ジェフ・ベゾスが起業時にレストランのナプキンに書いたオリジナルのコンセプト図

品揃えと低価格を徹底的に追求

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

規模の拡大とイノベーションのサイクル

資本投資

技術投資

効率改善

値下げ

より多くの

顧客獲得

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWSの場合はどうでしょう?

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

規模の拡大とイノベーション

技術投資

効率改善

値下げ

資本投資

現在AWSでは、Amazon.com が年商約7,000 億円($7B)企業であった際と

同等のサーバー数を毎日追加するスピードで成長

より多くの

顧客獲得

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

資本投資

規模の拡大とイノベーション

効率改善

値下げ

より多くの

顧客獲得

2013年は280、2014年は今日時点で400を超える新機能の追加を実施

技術投資

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

資本投資

規模の拡大とイノベーション

技術投資

より多くの

顧客獲得2006年から45回以上の値下げを実施

値下げ効率改善

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

“AWSとは”何かご理解いただけたと思いますそれではより具体的な内容に入っていきましょう!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWSの豊富なサービス

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWSのアカウントを作ってログインすると、、

続々と増えている

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

見知らぬ英語がたくさん並んでる(>_<)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

そして続々とUpdateのニュースが、、

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

良さそうなのは理解できたけど、、

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

どこから手をつければいいのでしょうか??

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

大丈夫です!今お持ちの知識で十分はじめられます!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

最初におさえておきたい3つのサービス

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

1c

Amazon EC2

・台数やスペックを柔軟に変更可能な仮想サーバWindows:2003R2~2012R2

Linux:RHEL5~,CentOS5~,Amazon Linux etc

・初期費用不要で、必要な時に必要な台数を時間課金で利用可能

・APIで起動や停止、スペック変更等の操作が可能

・オンプレミスの仮想化環境からVMをそのまま移行することもできる

まずは基本のEC2(仮想サーバ)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

仮想サーバ台数

5,000

月 火 水 木 金 土 日

3日間で

5,000台まで増加

少額の

初期費用で

公開

Facebook

アプリ対応

必要なときに必要なだけ①• インターネットビデオアプリケーションの例

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

必要なときに必要なだけ②

[クラスメソッド社AWS導入事例] http://classmethod.jp/cases/nhk/nhk-kouhaku-64/

毎秒数十万の同時接続クライアントにメッセージ配信を行うため、クラウドを活用してオンデマンドに調達した数百台の高性能サーバーを用いました。

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

US West(Northern

California)

US East(Northern

Virginia)

EU(Ireland)

Asia

Pacific(Singapore)

Asia

Pacific(Tokyo)

GovCloud(US ITAR

Region)

US West(Oregon)

South

America(Sao Paulo)

AWS Regions

AWS Edge Locations

Asia

Pacific(Sydney)

世界中のデータセンタ群(リージョン)

どのリージョンでも同じ使い勝手同じやり方で日本から利用可能

EU – NEW!(Frankfurt)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Tokyoリージョンは2つのデータセンタ(AZ)• 2つのAZを利用した冗長構成も簡単

リージョン=データセンタ”群”?

EU (Ireland)

Availability

Zone A

Availability

Zone C

Availability

Zone B

Asia Pacific (Tokyo)

Availability

Zone A

Availability

Zone B

US West (Oregon)

Availability

Zone A

Availability

Zone B

US West(Northern California)

Availability

Zone A

Availability

Zone B

Asia Pacific (Singapore)

Availability

Zone A

Availability

Zone B

AWS GovCloud (US)

Availability

Zone A

Availability

Zone B

South America (Sao Paulo)

Availability

Zone A

Availability

Zone B

US East (Northern Virginia)

Availability

Zone DAvailability

Zone C

Availability

Zone B

Availability

Zone E

Availability

Zone A

Asia Pacific (Sydney)

Availability

Zone A

Availability

Zone B

*AZ=Availability Zoneの略距離の離れたデータセンタ

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

EC2を利用すれば、以前から皆さんがお使いのサーバーを必要な分だけ世界中に構築できます!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

1

Amazon RDS

・マネージドデータベースサービス(MySQL/PostgreSQL/Oracle/SQL Serverに対応)

・冗長構成、マスタ/スレーブ構成や自動バックアップなどご利用可能

まずは、おさえておきたいサービス (データベース)

EC2と同様に、日頃から皆さんがお使いのデータベースを必要な分だけ世界中に簡単に構築可能!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

SnapShot(自動/手動)

RDSで2つのデータセンターを使う構成(MultiAZ)にすると万が一のことがあっても安心・安全

Availability Zone Availability Zone

RDS RDS

同期レプリケーション

自動フェイルオーバー

ログ(5分間隔)

データセンター間での冗長構成スナップショットとログからデータ復元

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

RDSなら読み取り専用インスタンスも簡単構築

Availability Zone Availability Zone

RDS RDS

非同期レプリケーション

たくさんクエリ要求がきても大丈夫!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

まずは、おさえておきたいサービス (ストレージ)

1

Amazon S3

・容量無制限のオンラインストレージ・自動的に複数DCに保存し、高い耐久性を実現

・保存した分だけの安価な従量課金

実質的に業界標準の分散オブジェクトストレージ

“S3 互換” 等のキーワードで検索してみましょう!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

分散オブジェクトストレージ?難しそう…?

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

S3の概要

東京リージョン

3か所以上で自動複製

バケット

高い耐久性でデータ失わない:

99.999999999%

世界中の拠点(リージョン)から選択

データセンターA

データ置くだけ。インフラ、電源、気にしない。容量無制限。

データセンターB

データセンターCファイル⇒ テキスト、画像、動画

保存するデータは、自動で暗号化する

ことも可能

安価な従量課金例:1GB/月 – 約3.4円

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

使うのはとても簡単!具体例を見てみましょう!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ブラウザから操作: バケット作成

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ブラウザから操作: ファイルアップロード

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ブラウザから操作: ファイルダウンロード

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

S3にアップロードしたHTMLや画像を公開することも簡単!

HTMLと画像をS3にUpload

HTMLと画像が配信されている

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

プログラムやコマンドラインでも簡単にご利用頂けます!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS SDK for PHP(AWSのPHPライブラリ)を使う例: バケットにファイルを追加

// S3用のクライアントを生成$client = S3Client::factory();

// バケットにファイルを追加$key = 'hello_world.txt';$result = $client->putObject(array(

'Bucket' => $bucket,'Key' => $key,'Body' => "Hello World!"

));

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS SDK for PHP(AWSのPHPライブラリ)を使う例: バケットからファイルを取得

// バケットからファイルを取得して表示$result = $client->getObject(array(

'Bucket' => $bucket,'Key' => $key

));echo $result['Body'];

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS CLI(AWSのコマンドラインツール)を使う例: バケットからファイルの一覧を取得

$ aws s3 ls s3://bucket-name

Bucket: my-bucketPrefix:

LastWriteTime Length Name------------- ------ ----

PRE MyFolder/2013-09-04 19:05:48 3 MyFile1.txt

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS CLI(AWSのコマンドラインツール)を使う例: ディレクトリのsync

$ aws s3 sync . s3://my-bucket/Foo

upload: Bar¥MyFile3.txt to s3://my-bucket/Foo/Bar/MyFile3.txtupload: MyFile2.txt to s3://my-bucket/Foo/MyFile2.txtupload: MyFile1.txt to s3://my-bucket/Foo/MyFile1.txt

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ということで、ご安心ください!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

1c

Amazon EC2

・一般的なLinux/Windowsサーバ

・プラスアルファで便利な機能

1

Amazon S3

・業界標準APIで操作するストレージ

・プラスアルファで便利な機能や高い耐久性

1

Amazon RDS

・一般的なリレーショナルデータベース

・プラスアルファで便利な機能

いずれも既存の知識で使えます!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

個人でもスタートアップでも、エンタープライズでも同じ価格

値切る必要なし!フェアな料金!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

主要サービスの価格

①サーバデータベース

約3円~ / 1時間Amazon EC2

②ストレージ 1GB1ヶ月保存で約3.4円

③データ転送(ダウンロードのみ課金対象) 約20円 / 1GB

※サーバスペックによって異なります

Amazon S3

約4円~ / 1時間Amazon RDS

いずれも初期費用は不要(0円)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS利用料の一般的な内訳例

一般的に「サーバ/DB」が全体の8~9割程度を占めるケースが多い

AWSにはいろいろな課金箇所があるが、サーバ/DB利用料、データ転送料が想定できれば、大体の金額は算出できる

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

サーバ/DBは使った分だけの従量課金

• 初期費用は不要

• 起動時間1時間単位の課金

• たとえば2台を1ヶ月利用の場合は…

時間単価×24(時間)×日数(30日など)×2(台数)

• 時間単価はスペックによって異なる

長期利用の割引もあり

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

長期ご利用の割引プランもあります

• リザーブド・インスタンス– 1年間 or 3年間での「インスタンス割引権利」の購入

– 大幅割引(3~5割引)が適用

– 長期間稼動が見込まれる処理に最適

オンデマンドインスタンス

リザーブドインスタンス

積算料金

期間

一時金

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

台数×時間

• 200台を2時間なら…

時間単価×200(台数)×2(時間)

• 2台を200時間なら…

時間単価×2(台)×200(時間)

• たとえば…1,000台のサーバを使って、

1時間だけ計算処理をすることも可能

同じ料金

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

では、ここで質問です。

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

突発的なピーク対応にいくらかかると思いますか?

• 1:約1,000円

• 2:約10,000円

• 3:約100,000円

・2時間後にピーク前の状態に戻す前提、ピークが来ない場合との比較

・m3.mediumのスペック:1コア・メモリ3.7GB

・m3.xlargeのスペック:4コア・メモリ15GB

商品がテレビで取り上げられる2時間の間…

EC2(medium)を20台増設、

RDSをスペックアップ(medium→xlarge)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

これならいきなりトラフィックが増えてもコスト的にも安心ですね!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

データ転送も使った分だけの課金

• 回線契約のような固定費用は無し

• AWS(各リージョン)からダウンロードされたデータが課金対象

• アップロードは無料

帯域

時間

ピークを想定した帯域で固定料金

実際のトラフィック

帯域

時間

使った分だけの課金

実際のトラフィック

いままで AWS

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

クラウドでセキュリティ大丈夫??⇒ 今でもよく聞かれる質問です

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CIAの技術主任が「クラウドは既存のアプローチよりもセキュアである」と発言

http://www.computerweekly.com/news/2240106599/CIA-technology-chief-says-cloud-is-more-secure-than-traditional-approaches

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

機密データはユーザ側で暗号化することも可能です

http://www.publickey1.jp/blog/14/awsamazonandy_jassy.html

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWSはインフラ部分のセキュリティ担当

ファシリティ

物理セキュリティ

コンピュートインフラ

ストレージインフラ

ネットワークインフラ

仮想化レイヤー

OS

アプリケーション

セキュリティグループ

ファイアーウォール

ネットワーク設定

アカウント管理

ユーザ

責任共有モデル(shared responsibility model)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWSのセキュリティ方針

• セキュリティはAWSにおける最優先事項

• セキュリティに対する継続的な投資

• セキュリティ専門部隊の設置

• 複数の第三者認証を取得

• セキュリティ関連ホワイトペーパーの公開• http://aws.amazon.com/jp/security/

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

セキュリティ関連の第三者認証

SSAE 16/ISAE 3402基準、SOC1レポートSOC2レポート、SOC3レポートISO 27001 CertificationPCI DSS Level 1FISMA moderateSarbanes-Oxley (SOX) FedRAMPDoD (国防総省暫定認定)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ソニー銀行様

銀行業務システム、社内業務システム、一般向けシステムの基盤としてAWSを利用• ドキュメント管理、管理会計、リスク管理などのシステムを順次AWSへ

セキュリティについて詳細に確認後、採用を決定• クラウドセキュリティの正しい理解

• FISC安全対策基準への適合性確認

• ソニー銀行独自のシステムリスク分析

AWS Summit2014資料より抜粋

5年で約37%のコスト削減メリット

得られた導入効果• 拡張性

• HW保守対応、HW障害対応

• ライセンス

• 非稼働時コスト、ピーク時コスト、見込拡張コスト

• 耐障害性向上、復旧時間短縮

• BCP対応

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

HOYA株式会社様

グローバルに展開する 約100 の連結子会社の財務・連結会計を中心とする基幹業務を支えるSAP システムをAWSへ移行。

約2か月で、SAP環境のAWSへの完全移行およびDR環境の構築が完了

プライベートクラウドと比較して、初期投資で約 50 %~60 % コスト削減

“当社が使用している SAP には様々なデータが格納されているため、セキュリティに対しては慎重に検討を行いました。よく「クラウドはセキュリティに問題がある」という都市伝説のような話を聞きますが、AWS は調べれば調べるほどセキュアな環境であるということが分かり、安心して利用することができています。”

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• AWSとは?

• 最初におさえておきたい3つのサービス

• AWSの料金について

• AWSのセキュリティについて

• 最後に

本日の目次

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

本セッションでは3つのサービスしかご紹介できませんでしたが、、

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Black Belt Tech Webinar• 毎週水曜日 18時~19時 に Webセミナーやってます!

http://aws.typepad.com/sajp/

11月19日(水)はre:Inventの報告も!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Black Belt Tech Webinar• #jawsug ハッシュタグ

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

操作方法説明資料やサービスごとの詳しい資料あります

http://aws.amazon.com/jp/aws-jp-introduction/

日本語資料!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

無料でお試し出来ます

https://aws.amazon.com/jp/free/

実際に使うとわかりやすいです

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

(導入前に相談できる)人います

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

(導入前に相談できる)人います

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ユーザグループのイベントもたくさんJapan AWS User Group = JAWS-UG

日本中で勉強会が行われています

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

24時間365時間対応の日本語サポートも選べますベーシック デベロッパー ビジネス エンタープライズ

フォーラム 利用可能 利用可能 利用可能 利用可能

サポートへのコンタクト

EC2の健全性エラーが発生

した場合

コンタクトフォーム

電話、チャットコンタクトフォーム

電話、チャットコンタクトフォーム

初回応答時間 不可12時間

(営業時間内)1時間 15分

連絡先登録 - 1 5 無制限

24/365対応 なし なし あり あり

Trusted Advisor なし なし あり あり

専任スタッフ特別サポート

なし なし なし あり

料金(月額) 無料 $49

AWS利用総額の$0~$10K: 10%$10K~$80K: 7%

$80K~$250K: 5%$250K~: 3%

(最低$100)

AWS利用総額の10%(最低$15000)

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

https://aws.amazon.com/jp/contact-us/aws-sales/

お問い合せはこちらから!

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

体験ハンズオンも開催中です!

http://aws.amazon.com/jp/event_schedule/

テキスト見ながらハンズオン

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

はサーバや

ストレージといったITリソースを

電気・ガス・水道と同じように

必要なときに、必要なだけ

使えるようにしたサービスです

AWSは…

⑥ ⑥

④ ⑤

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

これからはじめるに最適!

• 初期費用不要で使った分だけの従量課金(長期契約不要)

• 汎用的な技術で構成

• スケールアウト/スケールアップ/スケールダウンが容易

• 世界中のデータセンタ群を利用出来る

スモールスタートが出来る!

急なサービス成長にも対応出来る!効率的な利用でコスト削減も可能!

既存の技術知識で、すぐに始められる

グローバル展開も容易

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ありがとうございました!