- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-04-13T06:14:12+00:00","default:wikiadmin","wikiadmin")
#author("2020-04-13T12:04:10+00:00","default:wikiadmin","wikiadmin")
-Docker Repository 500Mまで無料
#contents
*参考ページ [#y94a3f2b]
https://dev.classmethod.jp/articles/push-docker-image-to-ecr-with-cli/
https://y-ohgi.com/introduction-terraform/laravel/ecr/
*ECR操作 aws cli [#gf47fc9b]
**ECR 属性 [#kca87092]
|タグのイミュータビリティ|同じタグ名で上書きできなくする場合はtrue|
|プッシュ時にスキャン|PUSH時に脆弱性チェックをしてくれる。無料らしいのでtrueにすべし|
**ECR 作成 [#t5a6bee3]
-IAMにAmazonEC2ContainerRegistryFullAccessを付与して実験
-バグか--region付けないとエラーになった
aws ecr create-repository --repository-name test-ecr --region=ap-northeast-1
aws ecr describe-repositories --query 'repositories[].repositoryName'
**ECRログイン [#y138ea58]
-まずはログイン情報を表示させるため以下のコマンド実施
aws ecr get-login --region ${AWS_REGION} --no-include-email
-上記のコマンドで以下のコマンドが出るのでログインする。
docker login -u AWS -p 上記の出力 https://リポジトリID.dkr.ecr.ap-northeast-1.amazonaws.com