◆ AWS SAM、ECR コマンドメモ

インフラ

helloworldfunction アップ手順

docker push (aws_account).dkr.ecr.ap-northeast-1.amazonaws.com/tweetfunction:python3.7-v1
aws ecr create-repository --repository-name helloworldfunction --image-tag-mutability MUTABLE --image-scanning-configuration scanOnPush=true
aws ecr get-login-password | docker login --username AWS --password-stdin (aws_account).dkr.ecr.ap-northeast-1.amazonaws.com
docker tag helloworldfunction:python3.7-v1 (aws_account).dkr.ecr.ap-northeast-1.amazonaws.com/helloworldfunction:python3.7-v1
docker push (aws_account).dkr.ecr.ap-northeast-1.amazonaws.com/helloworldfunction:python3.7-v1
タイトルとURLをコピーしました