https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html
- aws configure
$ aws configure AWS Access Key ID [********************]: AWS Secret Access Key [*******************]: Default region name [None]: ap-northeast-1 Default output format [None]:
- 確認
$ aws ecr get-login-password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- get-login-password
$ aws ecr get-login-password | docker login --username AWS --password-stdin xxxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com Login Succeeded
- get-login-password(profile指定する場合)
$ aws ecr get-login-password --profile ecr | docker login --username AWS --password-stdin xxxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com Login Succeeded
Was this helpful?
0 / 0
1989年生まれのLancers SRE。 ホスティングから大規模なアドテクなどのインフラエンジニアとして携わり、AnsibleやTerraformでのインフラコード化を推進。副業では数社サーバー保守なども実施している。また、「脆弱性スキャナVuls」のOSS活動もしており、自称エバンジェリスト/技術広報/テクニカルサポート/コントリビュータでもある。現在はサービスの信頼性向上、可用性、レイテンシ、パフォーマンス、モニタリング、緊急対応、インフラコード化、リファクタリング、セキュリティ強化、新技術の検証、Docker開発環境の提供、AWSでのインフラ構築、グループ会社のインフラをECS/Fargateへ移行、CakePHP4での管理画面作成、メンター、分析基盤の運用を担当している。