Currently I'm create a lambda using aws cdk.
Every time I uploaded the lambda code as a zipped file to S3 I manually import it from the console.
I would like the code to be automatically updated everytime I upload the code to the S3 bucket
How can I do so using cdk?
I am aware of the code:Code.fromBucket()
inside the lambda function props but I'm not sure of what should I enter in the key
and objectVersion
parameters and if there should be certain props that I need to configure in the bucket itself
Note :
- I'm using Typescript