Search code examples
amazon-web-servicescloudaws-codecommit

can we migrate a code repository from one AWS account to another aws account using CLI. if not is there any way to do that?


I want to migrate a code from one AWS account to another AWS account using code commit CLI. Can anyone have any idea or any documents on "How to".

can we also clone a repo to another aws account?

Thanks in advance


Solution

  • Since CodeCommit is just a regular Git repository, you can create a new repository in the target account, checkout the source repository locally and push it to the newly created repository.

    There is no native way to move, clone or transfer ownership of a CodeCommit repository.