Skill 3.4.9

Use labels and branches for version and release management

Key Concepts

Common branching strategies use a main branch for releasable code and short-lived feature branches merged through pull requests. Pipelines can be tied to branches, such as develop deploying to test and main to production, and Amplify deploys each branch separately.

Git tags such as v1.4.0 mark release points and can trigger release pipelines. The same version label should follow the artifact everywhere: as the container image tag in ECR, in the Lambda version description or alias, and as a resource tag, so you can trace what is running back to the source commit.