Skill 1.1.2
Using version control to integrate pipelines with application environments
Key Concepts
A common pattern maps branches to environments: commits to main deploy to production through approvals, while feature branches build and test only. CodePipeline V2 triggers can filter on branches, file paths and Git tags, so a single pipeline reacts only to the changes that matter, for example releasing when a v* tag is pushed.
Pipelines should be started by events rather than polling: webhooks for third-party Git providers and EventBridge rules for CodeCommit and S3. Infrastructure definitions (CloudFormation, CDK) live in version control too, so infrastructure changes are reviewed, versioned and deployed by the same pipeline process (GitOps).