appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function

Home Page:https://github.com/marketplace/actions/aws-lambda-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for docker image

kyle-thedelta opened this issue · comments

I just had the use-case.
If somebody is looking for a quick alternative, updating the image to the tag latest and deploying should be :

aws lambda update-function-code --function-name example --image-uri 0123456789.dkr.ecr.us-east-2.amazonaws.com/example-image-name:latest --deploy

Need for the latest version of the aws cli 2.1.10

@PhilippeFerreiraDeSousa

The awscli lambda update-function-code command doesn't have a --deploy option. Do you mean --publish (which publishes a new version after updating the code)? Eg:

aws lambda update-function-code --function-name example --image-uri 0123456789.dkr.ecr.us-east-2.amazonaws.com/example-image-name:latest --publish

In any event, it works without the option, so thanks for the comment.

I will take it. Thanks for your feedback.

Please set the image_uri:

URI of a container image in the Amazon ECR registry.

for the image_uri can we set variables for the uri?

image_uri: $ECR_REGISTRY/$ECR_REPOSITORY:$TAG

returns

Message_: "Source image $ECR_REGISTRY/$ECR_REPOSITORY:$TAG is not valid. Provide a valid source image.",