SensorStream Requirements AWS CLI Docker for Mac Development pyenv localstack Architecture SAM Setting 1. Python shell $ pyenv local 3.6.4 $ python -m venv .venv3 $ source .venv3/bin/activate $ pip install pipenv $ pipenv install fish shell $ pyenv local 3.6.4 $ python -m venv .venv3 $ source .venv3/bin/activate.fish $ pip install pipenv $ pipenv install 2. Start localstack $ make localstack-up 3. Stop localstack $ make localstack-stop Code style check $ make lint Unit test $ make unit-test Deploy 1. Configure AWS credentials ~/.aws/credentials [sampler-development] aws_access_key_id = <your_aws_access_key_id> aws_secret_access_key = <your_aws_secret_access_key> ~/.aws/config [profile sampler-development] region = ap-northeast-1 output = json 2. Deploy $ make deploy CloudFomation Requirements AWS CLI Docker for Mac yarn Setting Move working directory $ cd cfn Install yarn $ yarn install Deploy 1. Configure AWS credentials ~/.aws/credentials [sensor-stream-development] aws_access_key_id = <your_aws_access_key_id> aws_secret_access_key = <your_aws_secret_access_key> ~/.aws/config [profile sensor-stream-development] region = ap-northeast-1 output = json 2. Docker image build $ ./build.sh 3. Deploy $ ./run.sh -t <template.yml>