Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.62 KB

File metadata and controls

32 lines (25 loc) · 1.62 KB

Sync GitHub Repository to AWS CodeCommit using GitHub Actions

Method 1

Create CodeCommit Repository

  • Go go AWS CodeCommit and create a repository

Configuring OpenID Connect in AWS

We will use OpenID Connect within our workflow to authenticate with AWS. You can also use IAM user credentials for authentication.
Please follow the below GitHub documentation create OIDC in AWS.

Create GitHub Secrets

Create the following GitHub secrets

  • AWS_REGION : region in which the CodeCommit repository is located
  • CODECOMMIT_REPOSITORY : Codecommit repository name
  • CODECOMMIT_ROLE : IAM role arn which was created in previous step

Method 2

Method 2 is implemented which uses aws codecommit migration in increments for large repositories. Testing in progress for method 2. Most of the issues are fixed in batch commit but if commit is ammended git commit --amend, it will fail the python script. Next step is to fix the python script accordingly

References & Inspirations