cdk-deploy --all keep saying no change but I have upted my source code...

0

I have been using cdk to develop my project, usually when I update even a little bit of my source code such as add "console.log("hi")", and cdk deploy --all, it will deploy and reflect the code change so that I can see the log shows in cloud watch. But today, I see this message, and I check my lambda and it is not get updated as well. Could anyone help me out?

Enter image description here

Here is my lambda set up, I follow exactly the aws NodejsFunction cdk offical doucment setup ...

Enter image description here

2 Answers
1

Hi,

"no update" means in many case that the code that you added didn't change the CloudFormation templates generated via CDK synth command.

Are you sure that the code that you added impacts the AWS resources to be created / update by the cdk synth?

Best,

Didier

AWS
EXPERT
answered a year ago
EXPERT
reviewed a year ago
  • I only edit the lambda source code instead any spec of the lambda instance..., I want to have my new source code deployed

1

Hello.

I would like you to check just to be sure, are you updating the wrong file?
Are you viewing the latest version in Lambda's console?
Please make sure you are viewing the latest version of the alias.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html

EXPERT
answered a year ago
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions