AWS SAM + DynamoDB Local のサンプル
$ make
build Build Lambda functions
clean Clean build directory
deploy Upload and deploy Lambda functions
help Show help
migrate Create table and put data to DynamoDB Local
start-api Run local Api Gateway and Lambda funcitons
$ brew install go dep python3
$ pip install -r requirements.txt
$ dep ensure
$ make build
$ docker-compose up -d
$ make migrate
$ make start-api
$ curl http://localhost:3000/users/1
$ BUCKET_NAME=<s3_bucket_name> make deploy
- ローカルでの実行にはダミーでも構わないので Credentials が必要です。
- DynamoDB Local は落とすたびにデータが消えます (
InMemory: true
)。