I am using AWS CodeCommit with CodePipeline. I have
two totally separate AWS accounts, one for test and one for production,
identical Code Pipelines setup in each account, each with a corresponding CodeCommit repo.
a local code repo on my dev machine.
This allows me to push from the local repo to either the test or production AWS account, depending on what I'm doing.
I'm now in the process of setting up a second local development machine. This feels like a slightly daft question, but
- Which of my test or production AWS accounts should I regard as my 'repository of record'?
- What are other people doing in this regard?
- Is it considered bad practice to have two AWS CodeCommit repositories setup in this way?
- What is the best practice for totally separate AWS accounts which share the same codebase but have duplicated CodeCommit repos on the two AWS accounts?