3. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
メディアの配信
共有データの保存
データのリアルタイム解析Track Retention
プッシュ通知の送信
Manage users and
identity providers
Securely access
cloud resources
Sync user prefs
across devices
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
4. AWSモバイルサービスのご紹介
Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push
Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector
AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge Locations)
Core Building Block
Services
Mobile Optimized
Connectors
Mobile Optimized
Services
Your Mobile App, Game or Device App
AWS Mobile SDK, API Endpoints, Management Console
Compute Storage Networking Analytics Databases
Integrated SDK
5. モバイルへの最適化、クロスプラットフォーム
Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push
Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector
User identity &
data synchronization
service
Store any NoSQL
data and also map
mobile OS specific
objects to
DynamoDB tables
Fast cross-platform
Analytics & reporting
Service
Powerful Cross-platform
Push notification service
Recorder that can
handle intermittent
network connection
Easily upload,
download to S3 and
also pause,
resume, and cancel
these operations
Send email
reliably from
device
Access
distributed
buffering and
queuing service
6. 統合されたAWS Mobile SDK
• 全てのサービスに共通の認証機構
• オンライン・オフラインを⾃自動でハンドリン
グ
• クロスプラットフォームサポート:Android,
iOS, Fire OS (今後の予定: Unity,
PhoneGap, Cordova)
• Mobile OSへの最適化
• 例例: ローカルオフラインキャシュを利利
⽤用するアーキテクチャ
• メモリフットプリントの削減
• 同梱するパッケージの選択も可
7. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
メディアの配信
共有データの保存
データのリアルタイム解析Track Retention
プッシュ通知の送信
Manage users and
identity providers
Securely access
cloud resources
Sync user prefs
across devices
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
8. AWS Mobile SDK
Amazon Mobile
Analytics
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
Amazon DynamoDB
(Object Mapper)
Amazon Kinesis
(Recorder)
Track Retention
Amazon Mobile
Analytics
Amazon SNS
Mobile Push
Your
Mobile
App
ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
メディアの配信
共有データの保存
データのリアルタイム解析
プッシュ通知の送信
11. ID
プロバイダ
ユニークID
Joe Anna Bob
Any Device
Any Platform
Any AWS
Service
セキュリティのベストプラクティスを実装
AWS Identity and Access Management (IAM)
とのインテグレーションをシンプルに実現し、
AWSの各種サービスへのアクセスをセキュアに実
現
複数のIDプロバイダをサポート
主要なIDプロバイダとのインテグレーションを
容易易に
ユニークユーザの特定
デバイスやプラットフォームを越えて⾃自動でユ
ニークなユーザを認識識して管理理
Amazon Cognito Identity
Mobile
Analytics
S3
DynamoDB
Kinesis
22. Amazon Cognito セキュリティアーキテクチャ
User ID
(Temp
Credentials)
DynamoDB
End Users
Developer
App w/SDK
Access
to AWS
Services
Cognito Identity
Broker
Login OAUTH/OpenID
Access Token
Cognito ID,
Temp
Credentials
S3
Mobile Analytics
Cognito Sync
Store
AWS
Management
Console
Access Token
Pool ID
Role ARNs
24. Amazon Cognito (IDブローカ)
Identitypool
Identity
Providers
Pool of identities that
share the same trust policy
Access
Policy
Access to
AWS
Services
identitypool
Unauthenticated
Identities
authenticated
identities
AWS IAM Roles
AWS
Account
Web Identity
Federation
S3
DynamoDB
Get Delete Put
28. アクセスポリシーによる制限 (Policy Variables)
Allow
Actions:
All sync operations
Resource:
Only to that identity
{!
"Effect": "Allow”,!
"Action": ["s3:GetObject”,"s3:PutObject”],!
"Resource": ["arn:aws:s3:::!
!myBucket/amazon/snakegame/!
!${cognito-identity.amazonaws.com:sub}"]!
}!
{!
"Effect":"Allow",!
"Action":"cognito-sync:*", !
"Resource":["arn:aws:cognito-sync:us-east-1:
!123456789012:identitypool/!
!${cognito-identity.amazonaws.com:aud}/identity/!
!${cognito-identity.amazonaws.com:sub}/*"] !
}!
Allow
Actions:
S3 Get/Put operations
Resource:
Only to a specific part
of bucket to that identity
31. Amazon Cognito Sync
User Data
Storage and
Sync
Any Platform
iOS/Android/FireOS
アプリデータ、設定や状態の保存
アプリやデバイスのデータをクラウド上に保存し、ログイン
後に結合する。
デバイス間、OS間の同期
コード一行でユーザーデータや設定をデバイス間で
同期
オフライン作業
データは常にローカルのSQLite DBに先に保存する。
インターネット接続が不安定または切断の場合でも
アプリがシームレスに動く。
k/v data
Identity pool
33. Amazon Cognito Sync データモデル
AWS
Account
Identitypool
Dataset
同じトラストポリシーを共有するアイデンティティプール
Identity
Identity
Identity
Dataset
Dataset
identitypool
クロスデバイスのユニークIDを、
ローカルデバイスにキャッシュしながらクラウドにも保存
1:n
1:n
1:n
dataset.synchronize()を呼出すだけで、
データ・セットをデバイス間で同期
DatasetDataset
Key/Value
1:n
キーバリューと同期カウント
34. Amazon Cognito Sync データモデル – サンプル
AWS
Account
Identitypool
Dataset
Identity
Identity
Identity
Dataset
Dataset
identitypool
1:n
1:n
1:n
User
preferences
Developer has two apps: a game and a productivity app
Game
state
Identitypool1
Productivity
App
Game
App
DatasetDataset
Key/Value
1:n
38. ユーザの行動分析
メディアの管理
メディアの配信
共有データの保存
データのリアルタイム解析Track Retention
プッシュ通知の送信
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
ユーザ認証
アクセスの認可
データの同期
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
45. Key Business Metrics
(with one line of code)
1. Monthly Active Users
(MAU)
2. Daily Active Users
(DAU)
3. New Users,
4. Daily Sessions,
5. Sticky Factor,
6. 1-Day Retention,
7. Avg. Revenue per DAU,
8. Daily Paying Users,
9. Avg. Paying DAU
51. メディアの管理
メディアの配信
共有データの保存
データのリアルタイム解析
プッシュ通知の送信
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
ユーザ認証
アクセスの認可
ユーザの行動分析
データの同期
Amazon Mobile
Analytics
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Track Retention
Amazon Mobile
Analytics
56. 共有データの保存
データのリアルタイム解析
プッシュ通知の送信
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
ユーザ認証
アクセスの認可
ユーザの行動分析
データの同期
Amazon Mobile
Analytics
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Track Retention
Amazon Mobile
Analytics
メディアの管理
メディアの廃止
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
57. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
AWS Mobile SDK
Amazon Mobile
Analytics
メディアの配信
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
共有データの保存
Amazon DynamoDB
(Object Mapper)
データのリアルタイム解析
Amazon Kinesis
(Recorder)
Track Retention
Amazon Mobile
Analytics
プッシュ通知の送信
Amazon SNS
Mobile Push
Your
Mobile
App
61. Amazon SNS
Cross-platform
Mobile Push
Internet
Apple APNS
Google GCM
Amazon ADM
Windows WNS and
MPNS
Baidu CP
業界初!
New!
Amazon SNSを利用して, 開発者は世界中のクロスプラットフォームのユーザにプッ
シュ通知を送信
新機能:
メッセージの有効期間
メッセージ属性
Amazon SNS Mobile Push
Android Phones and Tablets
Apple iPhones and iPads
Kindle Fire Devices
Android Phones and Tablets in China
iOS
Windows Desktop and Windows Phone
Devices
63. 共有データの保存
データのリアルタイム解析
プッシュ通知の送信
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
ユーザ認証
アクセスの認可
ユーザの行動分析
データの同期
Amazon Mobile
Analytics
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Track Retention
Amazon Mobile
Analytics
メディアの管理
メディアの配信
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
64. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
AWS Mobile SDK
Amazon Mobile
Analytics
メディアの配信
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
共有データの保存
Amazon DynamoDB
(Object Mapper)
データのリアルタイム解析
Amazon Kinesis
(Recorder)
Track Retention
Amazon Mobile
Analytics
プッシュ通知の送信
Amazon SNS
Mobile Push
Your
Mobile
App
68. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
メディアの配信
共有データの保存
データのリアルタイム解析Track Retention
プッシュ通知の送信
Manage users and
identity providers
Securely access
cloud resources
Sync user prefs
across devices
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream logs
and take actions quickly
Your
Mobile
App
69. ユーザ認証
アクセスの認可
ユーザの行動分析
メディアの管理
データの同期
AWS Mobile SDK
Amazon Mobile
Analytics
メディアの配信
Amazon Cognito
(Sync)
AWS Identity and
Access Management
Amazon Cognito
(Identity Broker)
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
共有データの保存
Amazon DynamoDB
(Object Mapper)
データのリアルタイム解析
Amazon Kinesis
(Object Mapper)
Track Retention
Amazon Mobile
Analytics
プッシュ通知の送信
Amazon SNS
Mobile Push
Your
Mobile
App
70. キーポイント
Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push
Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector
AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge Locations)
コアサービス
モバイル最適化
コネクタ
モバイル最適化
サービス
Your Mobile App, Game or Device App
AWS Mobile SDK, API Endpoints, Management Console
Compute Storage Networking Analytics Databases
統合SDK
71. キーポイント
Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push
Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector
AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge
Locations)
Core Building Block
Services
Mobile Optimized
Connectors
Mobile Optimized
Services
Your Mobile App, Game or Device App
AWS Mobile SDK, API Endpoints, Management Console
Compute Storage Networking Analytics Databases
Integrated SDK
クロスプラット
フォーム・
モバイルに最適
柔軟性と
自由な選択肢
フルマネージド
簡単スタート
75. Simple and predictable pay as you go pricing
Amazon Cognito Amazon Mobile
Analytics
Amazon SNS
Mobile Push
Free Tier:
1 Million push messages
every month
Thereafter:
$0.50 for Million
notifications delivered
$0.50 for Million requests
Free Tier (for first 12
months):
1 Million syncs/month +
10GB of storage for
Amazon Cognito
Thereafter:
$0.15 for 10K Syncs
$0.15 per GB for storage
Free Tier:
100 Million events every
month
Thereafter:
$1.00 per Million events