question

syuja avatar image
syuja asked

ASK CLI V2 - Deploying after Migration

I recently migrated from V1 to V2 successfully.

However, now whenever I deploy, the latest lambda isn't uploaded.

I can tell because after deploying I run dialog and I go the the CloudWatch Logs.

The logs are the same. I've added new log output but the new output isn't showing.

This tells me that the deploy isn't uploading the latest changes to the lambda.

The dialog command runs the lambda and I see the updated timestamp, but it's not the latest code.


Does anyone have any ideas?


I'm hoping not to start all over again.


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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello @syuja and thanks for your message.

When you migrate a previously developed skill from V1 to V2, the folders and file structure changes. The files related to the older version are copied to a hidden folder named .legacy (check the information under the table over here).

Make sure that you are updating the correct files and not the ones under ./legacy.

Regards,
Barry

10 |5000

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