From 7f067fb54dd7137811f775b16702ec16037388fe Mon Sep 17 00:00:00 2001 From: Elijah Ginter <17730467+eginter@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:21:03 -0400 Subject: [PATCH] Update Makefile create target to use mock asl definition for testing --- .../step-func-conn/{{cookiecutter.project_name}}/makefile | 2 +- nodejs16.x/step-func/{{cookiecutter.project_name}}/makefile | 2 +- nodejs18.x/step-func/{{cookiecutter.project_name}}/makefile | 2 +- nodejs20.x/step-func/{{cookiecutter.project_name}}/makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs16.x/step-func-conn/{{cookiecutter.project_name}}/makefile b/nodejs16.x/step-func-conn/{{cookiecutter.project_name}}/makefile index ac7c640b5..3e9440fd3 100644 --- a/nodejs16.x/step-func-conn/{{cookiecutter.project_name}}/makefile +++ b/nodejs16.x/step-func-conn/{{cookiecutter.project_name}}/makefile @@ -10,7 +10,7 @@ create: sed -E -e 's/\$$\{.+\}/arn:aws:lambda:us-east-1:123456789012:function:mock/' statemachine/stock_trader.asl.json > statemachine/test/mocked.test.asl.json aws stepfunctions create-state-machine \ --endpoint-url http://localhost:8083 \ - --definition file://statemachine/stock_trader.asl.json \ + --definition file://statemachine/test/mocked.test.asl.json \ --name "StockTradingLocalTesting" \ --role-arn "arn:aws:iam::123456789012:role/DummyRole" \ --no-cli-pager diff --git a/nodejs16.x/step-func/{{cookiecutter.project_name}}/makefile b/nodejs16.x/step-func/{{cookiecutter.project_name}}/makefile index ac7c640b5..3e9440fd3 100644 --- a/nodejs16.x/step-func/{{cookiecutter.project_name}}/makefile +++ b/nodejs16.x/step-func/{{cookiecutter.project_name}}/makefile @@ -10,7 +10,7 @@ create: sed -E -e 's/\$$\{.+\}/arn:aws:lambda:us-east-1:123456789012:function:mock/' statemachine/stock_trader.asl.json > statemachine/test/mocked.test.asl.json aws stepfunctions create-state-machine \ --endpoint-url http://localhost:8083 \ - --definition file://statemachine/stock_trader.asl.json \ + --definition file://statemachine/test/mocked.test.asl.json \ --name "StockTradingLocalTesting" \ --role-arn "arn:aws:iam::123456789012:role/DummyRole" \ --no-cli-pager diff --git a/nodejs18.x/step-func/{{cookiecutter.project_name}}/makefile b/nodejs18.x/step-func/{{cookiecutter.project_name}}/makefile index ac7c640b5..3e9440fd3 100644 --- a/nodejs18.x/step-func/{{cookiecutter.project_name}}/makefile +++ b/nodejs18.x/step-func/{{cookiecutter.project_name}}/makefile @@ -10,7 +10,7 @@ create: sed -E -e 's/\$$\{.+\}/arn:aws:lambda:us-east-1:123456789012:function:mock/' statemachine/stock_trader.asl.json > statemachine/test/mocked.test.asl.json aws stepfunctions create-state-machine \ --endpoint-url http://localhost:8083 \ - --definition file://statemachine/stock_trader.asl.json \ + --definition file://statemachine/test/mocked.test.asl.json \ --name "StockTradingLocalTesting" \ --role-arn "arn:aws:iam::123456789012:role/DummyRole" \ --no-cli-pager diff --git a/nodejs20.x/step-func/{{cookiecutter.project_name}}/makefile b/nodejs20.x/step-func/{{cookiecutter.project_name}}/makefile index ac7c640b5..3e9440fd3 100644 --- a/nodejs20.x/step-func/{{cookiecutter.project_name}}/makefile +++ b/nodejs20.x/step-func/{{cookiecutter.project_name}}/makefile @@ -10,7 +10,7 @@ create: sed -E -e 's/\$$\{.+\}/arn:aws:lambda:us-east-1:123456789012:function:mock/' statemachine/stock_trader.asl.json > statemachine/test/mocked.test.asl.json aws stepfunctions create-state-machine \ --endpoint-url http://localhost:8083 \ - --definition file://statemachine/stock_trader.asl.json \ + --definition file://statemachine/test/mocked.test.asl.json \ --name "StockTradingLocalTesting" \ --role-arn "arn:aws:iam::123456789012:role/DummyRole" \ --no-cli-pager