question

James Meyers avatar image
James Meyers asked

How to set lambda environmental variable using ask CLI?

How can I set a lambda environmental variable using the ask CLI? I tried setting the variables using the AWS console, but now when I run `ask deploy`, I get this error:

[Error]: Lambda update failed. Lambda ARN: arn:aws:lambda:us-east-1:608870357221:function:ask-custom-talk_stem-default
The Revision Id provided does not match the latest Revision Id. Call the GetFunction/GetAlias API to retrieve the latest Revision Id
lambdaask cli
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Ron Wang avatar image
Ron Wang answered

Hi SimpleJ! Currently CLI doesn't control environmental variable when we manage Lambda resource(s). For this case, you can run "ask deploy --target lambda --force" to update the Lambda if you are certain of the Lambda change (if the change is only ENV VAR's change).

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.