It's there a way to connect an Amplify project to a CodeCommit on a different account?

I’d like to host in my own CodeCommit and sync with Amplify in a client’s aws account. I can achieve that goal by using an external repository service, like GitHub, so I would expect to be able to do it with code commit, but I can’t figure out how. Any suggestions?

Two options:

  1. Make a clone repo in the same account as the Amplify. Keep your original repo and this clone repo in sync
  2. Associate Amplify with S3 instead of CodeCommit. Zip your code from codecommit to this s3 bucket.

The IAM concept for this is usually called “Cross-account” access and usually most AWS services allow for this:

https://docs.aws.amazon.com/codecommit/latest/userguide/cross-account.html

Interesting options, thanks! It’s unfortunate they both require extra steps into the dev process, though.

I’ll look into this, thanks!

Good luck. At my day job we deal with a few dozen (internal) accounts so I may be able to answer more questions if you have any.

Thanks! And thanks for the help!