This module sets up the state machine and lambda functions to process events. This module is responsibile for actually executing the api calls registered with the Schedule API. The registration of the events has to be done through the API. This executor only runs the events after they have been registered.
- node v10
AUTH0_URL
: AUTH0 URL, used to get M2M tokenAUTH0_AUDIENCE
: AUTH0 audience, used to get M2M tokenTOKEN_CACHE_TIME
: AUTH0 token cache time, used to get M2M tokenAUTH0_CLIENT_ID
: AUTH0 client id, used to get M2M tokenAUTH0_CLIENT_SECRET
: AUTH0 client secret, used to get M2M token
-
Make sure to use Node v10+ by command
node -v
. We recommend using NVM to quickly switch to the right version:nvm use
-
In the
scheduler-executor
root directory create.env
file with the next environment variables. Values for Auth0 config should be shared with you on the forum.# Auth0 config AUTH0_URL= AUTH0_AUDIENCE= TOKEN_CACHE_TIME= AUTH0_CLIENT_ID= AUTH0_CLIENT_SECRET=
- Values from this file would be automatically used by
npm
commands. ⚠️ Never commit this file or its copy to the repository!
- Values from this file would be automatically used by
npm install
npm run deploy
Run npm run destroy
to clean up AWS resources.