Blog History

September 15, 2020

How to export AWS CodeCommit to S3

Pretty simple: 

  • Install and configure Git
  • Clone the CodeCommit repo to a local repo on an instance that has an IAM role that allows AWS CC access:
    • git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/repo1 /local_repo
  • Install and configure (or use attached role) AWS CLI
  • Copy local repo to S3:
    • aws s3 cp ./local_repo  "s3://<bucket>" --recursive

No comments:

Post a Comment