In the previous step, we manually deployed a Lambda function handler that simply added all operands together. In this step, we will add a new Lambda function that dispatches the operator based on its name, and also create a CI/CD pipeline to manage the deployment of the Lambda function. The Lambda function code we provide here will still only dispatch Addition - in a later Challenge Exercise, you will be tasked with implementing the other basic functions (multiplication, subtraction, division).
In the Eclipse IDE, right-click on the root element of the dev-calculator project
Click Team
Click Push to origin.
AWS CodePipeline will now use CloudFormation to deploy the following resources:
- A new Step Function state machine that calls a Lambda function to perform Addition operations on the input payload.
- The Lambda function implemented by the Java code you checked into CodeCommit.
- IAM roles for the Lambda function and Step Function.