配置多账号AKSK
cat /root/.aws/credentials
[default]
aws_access_key_id = AKurFDjti5nxpT78vG8b
aws_secret_access_key = VigC95NUnP80tEN8BPaU0t1pH9Hl6dWA7nOV938i
[cn]
aws_access_key_id = AKkUOxOrl3G6FJ5fQevu
aws_secret_access_key = C5eHB2NoxxiUd6iB6nJhbpEifAQBUxtw5Uva6dSO
登陆默认账号ECR
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 12345678.dkr.ecr.us-west-2.amazonaws.com
登陆中国账号ECR
需要添加--profile cn
aws ecr get-login-password --region cn-northwest-1 --profile cn | docker login --username AWS --password-stdin 12345678.dkr.ecr.cn-northwest-1.amazonaws.com.cn