Skip to content

Instantly share code, notes, and snippets.

@tal66
Last active August 28, 2023 09:33
Show Gist options
  • Save tal66/45bb46d61020f29042dc6e38dba9c3ea to your computer and use it in GitHub Desktop.
Save tal66/45bb46d61020f29042dc6e38dba9c3ea to your computer and use it in GitHub Desktop.
lambda image fast update on windows
# 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