1

I have SAM installed on my Linux machine.

I updated some code in my infrastructure and need the new code updated in the Lambda.

I'm not using CodeDeploy, and I don't want to use it. Not yet anyway.

What is the proper way to propagate this updated code to my Lambda function?

5
  • Do you use AWS toolkit ? Commented May 7, 2021 at 21:19
  • No. I find the CLI simpler. Commented May 7, 2021 at 21:26
  • 1
    Does this solves your problem ? : docs.aws.amazon.com/cli/latest/reference/lambda/… Commented May 7, 2021 at 21:35
  • That's the answer I found using DuckDuckGo, so I think it is. Just need to install AWS cli. Commented May 7, 2021 at 21:54
  • 1
    Yes, because if you are comfortable with CLI you can go with this solution Commented May 7, 2021 at 21:55

1 Answer 1

2

As mentioned in this documentation: https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-code.html

aws lambda update-function-code \
    --function-name  my-function \
    --zip-file fileb://my-function.zip

You can use the above syntax to update your lambda code directly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.