DEV Community

Karthik Sakthivel
Karthik Sakthivel

Posted on

AWS CloudFormation Git sync now allows you to review your stack changes via Pull Request (PR)

What's new at AWS 📢

🎆 AWS CloudFormation Git sync now allows you to review your stack changes via Pull Request (PR) comments before they are deployed to CloudFormation.

🎆 With this launch, developer can get a clear overview of the changes in deployments within the PR.

🎆 CloudFormation Git sync will automatically post the change set information as comments to each new PR created or updated in the repository.

🎆 It enables you to review the proposed changes and then deploy the changes by merging the PR.

🎆 Since CloudFormation allows DevOps engineer to use a template file to manage the configuration of resources as a stack.

🎆 In addition developer can store this template in a remote Git repository using Git sync, and have CloudFormation stacks automatically updated.

🎆 Also CloudFormation continuously monitors Git repository and triggers a change set deployment whenever it detects a change in following,
🎗 Any template file that defines a stack
🎗 Stack deployment file that contains parameters, configure the stack.

🎆 Benefit of this launch is, customer can detect and prevent undesired changes from being deployed through a PR review of the change.

🎆 Steps to enable GitSync with CloudFormation:
🎗 Connect a Git provider to CloudFormation using CodeConnections service console.
🎗 Create CFT that defines your resource stack and add it to your repository.
specify the repository and branch you want
🎗 Choose Sync from Git from CloudFormation Console
🎗 Specify the repository, branch you want CloudFormation to monitor
🎗 Choose the CloudFormation template defines the stack.

🎆 Supported GitProviders to enable GitSync with CloudFormation:
🎗 GitHub and GitHub Enterprise
🎗 GitLab and GitLab self-managed
🎗 Bitbucket

📌 Explore more about GitSync:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/git-sync.html

📌 Explore more about CloudFormation deployment with Git Repo:
https://aws.amazon.com/blogs/devops/automate-safe-aws-cloudformation-deployments-from-github/

Top comments (0)