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)