Last active
August 28, 2023 09:33
-
-
Save tal66/45bb46d61020f29042dc6e38dba9c3ea to your computer and use it in GitHub Desktop.
lambda image fast update on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build,tag,push,deploy image to lambda on win ps7 | |
$FUNC_NAME = "" | |
$ACC_ID = "" | |
$ECR_REPO_NAME = "" | |
$IMG = "" | |
$IMG_URI = "$($ACC_ID).dkr.ecr.eu-central-1.amazonaws.com/$($ECR_REPO_NAME):latest" | |
docker build --platform linux/amd64 -t $IMG . && docker tag $IMG $IMG_URI && docker push $IMG_URI && aws lambda update-function-code --function-name $FUNC_NAME --image-uri $IMG_URI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment