File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ format: ## Run ruff to format the whole codebase
3838test : # # Run integration tests (requires LocalStack running with the Extension installed)
3939 $(VENV_RUN ) ; pytest tests $(PYTEST_ARGS )
4040
41- sample : # # Deploy sample app
41+ sample-oss : # # Deploy sample app (OSS mode)
4242 echo " Creating stubs in WireMock ..."
4343 bin/create-stubs.sh
4444 echo " Deploying sample app into LocalStack via Terraform ..."
@@ -48,6 +48,16 @@ sample: ## Deploy sample app
4848 echo " Invoking local API Gateway endpoint: $$ endpoint" ; \
4949 curl -k -v $$ endpoint | grep time_off_date
5050
51+ sample-runner : # # Deploy sample app (Runner mode)
52+ echo " Creating stubs in WireMock ..."
53+ bin/setup-wiremock-runner.sh
54+ echo " Deploying sample app into LocalStack via CDK ..."
55+ (cd sample-app-runner; cdklocal bootstrap; cdklocal deploy)
56+ apiId=$$(awslocal apigateway get-rest-apis | jq -r '.items[0].id' ) ; \
57+ endpoint=https://$$ apiId.execute-api.us-east-1.localhost.localstack.cloud/dev/models; \
58+ echo " Invoking local API Gateway endpoint: $$ endpoint" ; \
59+ curl -k -v $$ endpoint
60+
5161clean-dist : clean
5262 rm -rf dist/
5363
You can’t perform that action at this time.
0 commit comments