aws black belt techシリーズ aws sdk

Download AWS Black Belt Techシリーズ AWS SDK

Post on 16-Jul-2015

3.890 views

Category:

Documents

3 download

Embed Size (px)

TRANSCRIPT

  • AWS SDK

    AWS Black Belt Tech Webinar 2015 ()

    2015.03.18

  • @Keisuke69

    WebEC

  • AWS SDK

  • API

    AWSAPI

  • AWS SDK

    AWSSDK

    AWSAPIwrap

    HTTP/HTTPS http://docs.aws.amazon.com/general/latest/gr/rande.html

    SDK

  • Put,Get

    DB

    AWS SDK

  • AWS Management Console

    AWS CLI

  • API

    AWS Management ConsoleCLI AWS CloudTrailManagement Console

    API

  • AWS SDK

    Android iOS

    Java NodeJS .NET PHP Python Ruby

    Javascript in

    Browser

    SDK

  • AWS SDK

    Android iOS

    Java NodeJS .NET PHP Python Ruby

    Javascript in

    Browser

    SDK

    AWS Mobile SDK

  • AWS Mobile SDK

    SDK

    Mobile OS

  • AWS SDK for Go

    StripeAWSSDK Developer Preview

    https://github.com/awslabs/aws-sdk-go

  • AWS Mobile SDK for Unity

    UnityPlugin .NET

    Developer Preview Amazon Cognito Amazon S3 Amazon DynamoDB Amazon Mobile Analytics

    Unity4.0

  • AWS Mobile SDK for Xamarin

    XamarinPlugin https://github.com/awslabs/aws-sdk-xamarin

    Amazon Cognito

    Amazon S3

    Amazon DynamoDB

    Amazon SNS Mobile Push

  • AWS SDK

    AWS /

    EC2RDSAWS

    SDK

    AWS

    S3DynamoDBSQS

  • SDK

    Amazon Kinesis

    Amazon SQS

    AWS Lambda

    Amazon SNS

    Amazon DynamoDB KVSNoSQL

    Amazon SES

  • AWS SDK

    SDK

    Credential(AWS API)IAM SDKIAMIAM

    (S3) Credential

    (PutObject)

    SDK

  • 2-Tier Architecture

  • 2-Tier Architecture

    Mobile SDKAWS SDK for JavaScript SDK

    JavaScriptAWS

  • 2-Tier Architecture

    EC2*

    EC2

  • 1

    DynamoDBS3HTML+JSS3Web

    3. FB

    Cognito

    DynamoDB

    S3

    1. HTTPS

    2. HTMLJS

    JavaScript SDK

    4.

  • 2

    Followers

    4. DynamoDB -

    1. FB

    6. Push -

    Cognito

    Mobile Analytics

    DynamoDB

    S3

    SNS 7. Analytics

    3.

    2. S3

    5. SNS

    App with AWS

    Mobile SDK

    Lambda

  • SDK

  • Githubpush JavaScript EC2

  • SDK

    /

  • SDK

    EC2IAM Amazon Cognito

    IAM

  • SDK

    SDK Shared credentials AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY

    IAMAWS SDK

    require 'aws-sdk' s3 = Aws::S3::Client.new(region: 'ap-northeast-1') resp = s3.list_buckets() puts resp.buckets.map(&:name)

    Ruby

  • Shared credentials

    ~/.aws/credentialsLinux/Mac

    [default] aws_access_key_id = XXXXXXXXXXXXXXXXXXXX aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • IAM

    AWSAWS AWS

    IAM

    EC2Beanstalk,Data Pipeline

  • IAM

    EC2 EC2 STS(Security Token Service)

    AWS ID 3API

    IAM

  • IAM

    IAM

    IAM

    IAM IAM

  • Amazon Cognito

    IAM

    AWS IAM Policy

    STSTVM

  • Android

    CognitoCachingCredentialsProvider provider = new CognitoCachingCredentialsProvider(

    myActivity.getContext(),

    "IDENTITY_POOL_ID", // Identity pool ID

    Regions.US_EAST_1

    );

    s3 = new AmazonS3Client(provider);

    List buckets = s3.listBuckets;

  • SDK

  • AWS SDK for Java

  • AWS SDK for Java

    AmazonAWSJavaSDK http://aws.amazon.com/jp/sdk-for-java/ https://github.com/aws/aws-sdk-java

    API http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html

    Java6 64bitJVM

    Amazon S3 Amazon DynamoDB Object Mapper Amazon S3 Transfer Manager Amazon SQS

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis STS

    Data Pipeline KMS Support

    Direct Connect Lambda SWF

    DynamoDB Mobile Analytics VPC

  • 1.9.0Maven

    com.amazonaws aws-java-sdk-s3 1.9.0 com.amazonaws aws-java-sdk-dynamodb 1.9.0

    S3DynamoDB

  • AWS Toolkit for Eclipse

    EclipseAWS SDK for Java

    AWS/

    EC2S3

    Elastic Beanstalk

  • AWS SDK for .NET

  • AWS SDK for .NET

    AmazonAWS.NET SDK http://aws.amazon.com/sdkfornet/ https://github.com/amazonwebservices/aws-sdk-for-net

    API http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index

    .html

    .NET Framework 3.5 Visual Studio 2010

    C#Visual Basic

  • AWS SDK for .NET

    Windows Windows Phone Windows

    Amazon DynamoDB Amazon DynamoDB Session State Provider

    ASP.NET DynamoDB

    Amazon S3 TransferUtility Amazon S3 Amazon Glacier ArchiveTransferManager

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis STS

    Data Pipeline KMS Support

    Direct Connect Lambda SWF

    DynamoDB Mobile Analytics VPC

  • AWS SDK for .NET

    AWS Toolkit for Microsoft Visual Studio

    Visual Studio

    AWS Tools for Windows PowerShell

    AWS .NET

    C#

  • AWS .NET for SDK http://aws.amazon.com/jp/sdkfornet/

  • AWS Toolkit for Visual Studio

    Microsoft Visual Studio

    AWS SDK for .NET

    AWS Elastic Beanstalk/AWS CloudFormation.NET

  • AWS SDK for PHP

  • AWS SDK for PHP

    AmazonAWSPHPSDK http://aws.amazon.com/jp/sdkforphp/ https://github.com/aws/aws-sdk-php

    API http://docs.aws.amazon.com/aws-sdk-php/latest/

    PHP5.3.3 OpenSSLZlibcURL extention

    Amazon DynamoDB Session Handler

    DynamoDB Amazon S3 and Glacier Multipart Uploader Resource Convenience Helper

    IteratorWaiter Batch

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis STS

    Data Pipeline KMS Support

    Direct Connect Lambda SWF

    DynamoDB Mobile Analytics VPC

  • Composer http://docs.aws.amazon.com/aws-sdk-

    php/guide/latest/installation.html#installing-via-composer

    Phar http://docs.aws.amazon.com/aws-sdk-

    php/guide/latest/installation.html#installing-via-phar

    Zip http://docs.aws.amazon.com/aws-sdk-

    php/guide/latest/installation.html#installing-via-zip

  • AWS SDK for Python(boto)

  • AWS SDK for Python(boto)

    AWSPythonSDK BotoAWS CLIboto-core http://aws.amazon.com/jp/sdk-for-python/ https://github.com/boto/boto

    API http://docs.pythonboto.org/en/latest/ref/

    Python 2.62.73.33.4 Version3Developer Preview

    Python 23

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis STS

    Data Pipeline KMS Support

    Direct Connect Lambda SWF

    DynamoDB Mobile Analytics VPC

  • $ pip install boto

  • AWS SDK for Ruby

  • AWS SDK for Ruby

    AWS SDKRuby V2 http://aws.amazon.com/jp/sdkforruby/ https://github.com/aws/aws-sdk-ruby

    API http://docs.aws.amazon.com/sdkforruby/api/index.html

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis STS

    Data Pipeline KMS Support

    Direct Connect Lambda SWF

    DynamoDB Mobile Analytics VPC

  • $ gem install aws-sdk

    gem 'aws-sdk', '~> 2'

    Gemfile

  • AWS SDK for JavaScript in Node.js

  • AWS SDK for JavaScript in Node.js

    AmazonAWSnode.jsSDK http://aws.amazon.com/sdkfornodejs/

    https://github.com/aws/aws-sdk-js

    API http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/fr

    ames.html

  • Auto Scaling EC2 OpsWorks

    CloudFormation ECS Redshift

    CloudFront ELB RDS

    CloudHSM Elastic Beanstalk Route53

    CloudSearch Elasticache S3

    CloudTrail Elastic Transcoder SES

    CloudWatch EMR SimpleDB

    CloudWatch Logs Glacier SNS

    CodeDeploy IAM SQS

    Cognito Import/Export Storage Gateway

    Config Kinesis ST