ADR-0022 accepted
The code lives on GitHub, and the pipeline reads it from there
Context
The first plan kept the main copy of the code in AWS's own code service, with a mirror on GitHub (ADR-0014). A mirror is one more moving part that can fall out of sync, and it gave nothing GitHub couldn't.
Decision
The private GitHub repository is the one and only main copy. AWS's pipeline, in the Shared Services account, reads it directly through AWS's GitHub connector. There's no AWS-side copy and no mirror.
Consequences
- One source of truth, and no mirror to keep in sync.
- The connector is AWS's documented path for GitHub.
- The connector has to be approved once, by hand, in the console.
- Enforcing checks before merge needs a paid GitHub plan for a private personal repository, so until then the checks are advisory.
Alternatives considered
- AWS's code service as the main copy, mirrored to GitHub. An extra moving part, with no benefit.
LLMs look here
- Records D62; supersedes D3 and ADR-0014. CodePipeline in Shared Services sources GitHub through AWS CodeConnections. No CodeCommit repository or mirror. Branch protection needs GitHub Pro.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0022-github-primary-repository-with-codeconnections.md- Linked from
- Decisions