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

demo-build-curd-app-with-serverless-elixir

ohr486
June 02, 2019

 demo-build-curd-app-with-serverless-elixir

ohr486

June 02, 2019
Tweet

More Decks by ohr486

Other Decks in Technology

Transcript

  1. how to run repo: https://github.com/ohr486/serverless_elixir_demo 利用ライブラリ: - erllambda - mix_erllambda

    以下のようなアプリを作成します - CR(U)D操作のできるAPI - 環境はAWS、Lambda、ApiGatewayを利用 - DBはDynamoDBを利用
  2. step0 • release buildの為のdocker imageのbuild ◦ https://github.com/alertlogic/erllambda_docker • build ◦

    mix deps.get ◦ docker run -it --rm -v `pwd`:/buildroot -w /buildroot -e MIX_ENV=prod erllambda:21-elixir mix erllambda.rellease
  3. step4 • deployスタックを確認 ◦ aws cloudformation describe-stacks --stack-name japanex-demo --query

    'Stacks[].Outputs' ◦ 作成したendpointを確認 • API ENDPOINTの設定 ◦ export APIENDP=xxxxxxx