Enable CloudFormation to post a summary of stack changes in pull requests - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Enable CloudFormation to post a summary of stack changes in pull requests

This topic shows you how to enable CloudFormation to post a summary of stack changes in pull requests in your Git repository.

By enabling the comments on pull requests feature, you allow CloudFormation to post a comment that describes the differences between the current stack configuration and the proposed changes when the repo files are updated. This comment provides a summary of the resources that will be added, modified, or deleted, allowing you to perform a thorough code review before merging the pull request.

To enable comments on pull requests for a new stack (console)

When you create the stack, on the Specify stack details page, under Template definition repository, make sure the Enable comment on pull request toggle is switched on. This is the default setting for new stacks.

To enable comments on pull requests for an existing stack (console)
  1. Sign in to the Amazon Web Services Management Console and open the Amazon CloudFormation console at https://console.amazonaws.cn/cloudformation.

  2. On the navigation bar at the top of the screen, choose the Amazon Web Services Region that you created your stack in.

  3. On the Stacks page, choose the running stack that you want to update.

  4. Choose the Git sync tab, and then choose Edit.

  5. On the Edit Git sync settings page, under Template definition repository, switch the Enable comment on pull request toggle on.

  6. Choose Update configuration.