AWS SDK for Haskell開発

Click here to load reader

  • date post

    27-Jun-2015
  • Category

    Technology

  • view

    1.950
  • download

    1

Embed Size (px)

description

Haskell忘年会2012で喋った

Transcript of AWS SDK for Haskell開発

  • 1. AWS SDK for Haskell

2. AWS(Amazon Web Services)API AWS 2 3. Amazon Web Services(AWS)EC2NICIPStorage, LB, RDB, DNS, CDN,Cache, KVS, E-Mail, Queue, Notify, MR, ...Instance AttachRouter Volume3 4. HTTPAPI WebAPI APIInternet Create/DeleteInstance AttachAttach/Detach RouterVolumeModify4 5. AWS APIAWS Java PHP CLIshRubyJava Python Ruby23 .NET, Android, iOS HaskellEC2 5 6. AWSseizans JavayunomuJavaAWS JavaPython HaskellHaskellhai 6 7. hackageDB: aws-sdk2012929EC2: 85/141API{ELB, RDS, CloudWatch}: 7 8. AWS APIHTTPParameterGETQuery StringPOST/XMLAWS AccessKey/SecretAccessKeySignatureResponseXMLRequest: (Parameter+Signature) Response: XML or HTTP Status Code8 9. aws-sdk APIEC2141API AWS API 9 10. Response(DescribeInstances) fdcdcab1-ae5c-489e-9c33-4637c5dda355 r-0ece705a 053230519467 i-7a00642eami-1cd4924e16runningVPCKey0c1.medium2012-06-28T17:41:48.000Zap-southeast-1bdefault 10 11. XML(xml-conduit)XML Attribute... 11 12. Response(DescribeInstances)describeInstances instances filters =ec2QuerySource "DescribeInstances" params $itemConduit "reservationSet" $ Reservation getT "reservationId" getT "ownerId" itemsSet "groupSet" (Group getT "groupId" getT "groupName") itemsSet "instancesSet" (Instance getT "instanceId" getT "imageId" element "instanceState" (codeToState getT "code"