Let's check the list of files that we have by executing the ls command. As you can see, we have the index.py file and the serverless.yml configuration file service document. We also have installed plugins for the serverless framework.
Let's take a look at the configuration file and its two main parts here:
- First, we will be adding several functions, which will be used in different states of the step function:
function: branch: handler: index.handlerBranch map: handler: index.handlerMap reduce: handler: index.handlerReduce
- Next, we will add some plugins, which are required to work with step functions:
plugins: - serverless-step-functions - serverless-pseudo-parameters
- Now let's take a look at the index.py file, where you ...