Now let’s make a change to the function and see how CI/CD will take this change to Production.
In Cloud9, open the api/hello-world/app.js file.
Make a change to the file. Change the return message, change it to hello from CI/CD.
Go to the terminal tab and enter the following commands to add the change, commit it, and push to the repository.
git add .
git commit -m 'Make a change to function'
git push
Now go back to the CodePipeline tab in your browser window, and have a look at the pipeline automatically changing.
Once the pipeline has updated, refresh the API endpoint browser page to see the changes to the return message. It should now say hello from CI/CD