chalice

Table of Contents

1 chalice

1.1 install

$ pyenv local 3.6.1

$ pip install chalice

1.2 init project

$ chalice new-project call-under-stair && cd call-under-stair

$ AWS_PROFILE=gside chalice deploy
Creating deployment package.
Creating IAM role: call-under-stair-dev
Creating lambda function: call-under-stair-dev
Creating Rest API
Resources deployed:
  - Lambda ARN: arn:aws:lambda:ap-northeast-1:469487576912:function:call-under-stair-dev
  - Rest API URL: https://4swpygwui0.execute-api.ap-northeast-1.amazonaws.com/api/

$ curl -l https://4swpygwui0.execute-api.ap-northeast-1.amazonaws.com/api/
{"hello": "world"}bash-3.2$ 

Author: Takeshi Matsuba

Created: 2019-06-12 水 21:01

Validate