Upgrade to Pro — share decks privately, control downloads, hide ads and more …

API GatewayのWebSocket対応について

youyo
February 12, 2019

API GatewayのWebSocket対応について

API GatewayのWebSocket対応について

youyo

February 12, 2019
Tweet

More Decks by youyo

Other Decks in Technology

Transcript

  1. Who am I func main() { profile := map[string]string{ "Name":

    " 石澤直人 (youyo_)", "Company": " ヘプタゴン", "Job": " エンジニア", "Language": "Go, Python...", "Likes": "AWS, GCP, serverless...", } fmt.Println(profile) }
  2. AWS SAM AWS Serverless Application Model Cloudformationのwrapperフレームワーク サーバーレスアプリケーションを作りやすいようにちょっと記法追 加されてる AWS::Serverless::Function

    AWS::Serverless::SimpleTable etc... Document: https://github.com/awslabs/serverless‑application‑ model/blob/master/versions/2016‑10‑31.md
  3. sam build $ sam build 2019-02-12 16:49:25 Building resource 'OnConnectFunction'

    2019-02-12 16:49:26 Running PythonPipBuilder:ResolveDependencie 2019-02-12 16:49:29 Running PythonPipBuilder:CopySource Build Succeeded Built Artifacts : .aws-sam/build Built Template : .aws-sam/build/template.yaml Commands you can use next ========================= [*] Invoke Function: sam local invoke [*] Package: sam package --s3-bucket <yourbucket>
  4. aws cloudformation package $ aws cloudformation package ... Uploading to

    366553b37d93dd7db652e2f24ccf3d45 6373889 / 637388 Successfully packaged artifacts and wrote output template Execute the following command to deploy the packaged template aws cloudformation deploy --template-file /Users/youyo/src/gith
  5. aws cloudformation deploy $ aws cloudformation deploy ... Waiting for

    changeset to be created.. Waiting for stack create/update to complete Successfully created/updated stack - example-apigateway-websock