Skill 3.1.3

Use code repositories in deployment environments.

Key Concepts

CodePipeline connects to GitHub, GitHub Enterprise, GitLab and Bitbucket through AWS CodeConnections (formerly CodeStar Connections), and can also start from AWS CodeCommit repositories, S3 objects or ECR images. CodeCommit was closed to new customers in July 2024 but returned to general availability in November 2025. Pipelines can be triggered by pushes to specific branches, by tags or by pull requests.

Container images are stored in Amazon ECR, packages in CodeArtifact, and build outputs in S3. Repositories should never contain secrets; Kiro agent hooks that scan staged changes, Amazon ECR image scanning and tools such as git-secrets help catch them before they are committed or deployed.