With Git sync, you can manage your CloudFormation stacks with source control. You do this by configuring CloudFormation to monitor a Git repository. The repository is monitored for changes to two files:
-
A CloudFormation template file that defines a stack
-
A stack deployment file that contains parameters that configure the stack
With Git sync, you can use pull requests and version tracking to configure, deploy, and update your CloudFormation stacks from a centralized location. When you commit changes to the template or the deployment file, CloudFormation automatically updates the stack. If you use pull requests, CloudFormation can leave a comment on the pull request explaining what changes will be made to your stack before actually updating it. However, you need to enable this feature first.
Git sync provides a console interface that you can use to link to a repository, generate a
stack deployment file, update a CloudFormation template, and submit a pull request to your
repository. Git sync also provides a status dashboard that you can use to monitor, edit, and
troubleshoot active Git sync stack deployments. Git sync is accessed through the CloudFormation console
Git sync supports GitHub
Note
Git sync is available in the following regions: US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon), Canada (Central), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), Europe (Frankfurt), Europe (Milan), and South America (São Paulo).
For information about using Git sync with a multi-account strategy, see
the following blog post Use
AWS CloudFormation Git sync to configure resources in customer accounts