AWS-CodeCommit
Table of Contents
Preface
AWS provides a code hosting service similar to GitHub and GitLab.
The use case here is downloading code from an internal GitLab instance to an AWS EC2 instance.
The previous approach was to mirror GitLab code to GitHub.
See: Syncing GitLab Code to GitHub
In practice, accessing GitHub from Alibaba Cloud ECS frequently resulted in timeouts.
Alibaba Cloud’s feedback was that accessing cross-border websites over the public internet goes through carrier cross-border bandwidth, which can be congested.
As a workaround, I tried AWS CodeCommit, and the mirroring worked well.
It’s likely that AWS has DNS resolution set up within China.
Creating a Repository
URL: https://us-west-2.console.aws.amazon.com/codesuite/codecommit/start?region=us-west-2
Click “Create repository” on the right side.

Enter the repository name and click “Create”.

Cloning the Code
Connection Methods
After creation, the following information is displayed by default.

CodeCommit provides several connection methods:
HTTPS with username & password,
SSH with SSH key.
Here we’ll use HTTPS as an example.
Creating an IAM User
You need to create an IAM user with CodeCommit permissions.

Then generate Git credentials for that user under CodeCommit.
Go to the user details > Security credentials section.
The generated credentials include username and password. You can download them as a CSV file.

Cloning the Code
There are two ways to clone the code:
# Directly git clone and enter username/password when prompted
git clone repo-url
# Put the username in the URL and enter the password when prompted
https://${username}@repo-url Related Articles
Running Multiple WeChat Clients on Mac
Preface: Many people have multiple WeChat accounts. On mobile, you can use two phones or Android multi-app features. This article explains how to run multiple WeChat clients on Mac by creating aliases to the WeChat executable inside the app bundle.
Installing MySQL on Mac
Introduction: This article covers how to install MySQL on Mac. Steps include downloading the DMG installer from the official website, installing it, and configuring the environment variables.
Grant MySQL Access to a Specific IP
AWS - Image Conversion with Lambda@Edge and CloudFront
Chinese cloud providers offer convenient image format and size conversion via URL parameters for their OSS/COS storage. AWS does not provide this out of the box — you need to write Lambda@Edge functions yourself. This article provides a complete guide on implementing image conversion with Lambda@Edge.
AWS-CodeArtifact
AWS CodeArtifact is a managed artifact repository that can host npm, Maven, and other packages.