CI/CD in action

Now let’s make a change to the function and see how CI/CD will take this change to Production.

  1. In Cloud9, open the api/hello-world/app.js file.

  2. Make a change to the file. Change the return message, change it to hello from CI/CD.

  3. 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
    
  4. Now go back to the CodePipeline tab in your browser window, and have a look at the pipeline automatically changing. Details Link

  5. 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