-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (20 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export PYTHONPATH=./life-efficiency
lint:
pipenv run python -m flake8
build:
pipenv requirements > life-efficiency/requirements.txt
sam build -u
run: build
cd local && docker-compose -f compose.yaml up -d
sam local start-api --docker-network life-efficiency --debug-port 1234 --skip-pull-image --warm-containers EAGER --docker-network life-efficiency --parameter-overrides ParameterKey=Environment,ParameterValue=local --container-env-vars local/local_env.json
deploy-dev: build
sam deploy --no-confirm-changeset --region eu-west-1 --stack-name life-efficiency-dev --parameter-overrides ParameterKey=Environment,ParameterValue=Dev
deploy-prod: build
sam deploy --no-confirm-changeset --region eu-west-1 --stack-name life-efficiency-prod --parameter-overrides ParameterKey=Environment,ParameterValue=Prod
test:
pipenv run python -m pytest --cov=life-efficiency ./tests
test-functional:
pipenv run python -m pytest functional
debug-local-dynamo:
docker run --network life-efficiency --rm -it --entrypoint /bin/sh amazon/aws-cli
# export AWS_ACCESS_KEY_ID='a'; export AWS_SECRET_ACCESS_KEY='b'; aws dynamodb list-tables --endpoint-url http://localstack:4566 --region eu-west-1