Make a code change

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

MakeCodeChange

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

MakeCodeChange

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.

MakeCodeChange

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