Make a code change

Now lets make a simple code change. Press CTRL-C to terminate the running process.


Open the file sam-app/HelloWorldFunction/src/main/java/helloworld/ change the response message to return hello beautiful world instead of hello world. Your Lambda handler should look like this after the change:


To see the new changes we must rebuild our SAM project

sam build

Build failure! This is expected as we haven’t updated our unit tests.


In the next chapter we’ll make the changes required to fix our build.