I am using a Docker-based bundling option to install necessary dependencies and create a Lambda Layer. The deployment succeeds. If I try to deploy a few more times - the bundling is initiated, however, in the end, it states "No changes". And this is expected behavior, since I haven't changed anything, no changes are introduced.
Now the real hocus-pocus happens is when I run the deployment command in a CI/CD pipeline which installs a fresh environment every time. The CDK gets confused and even though no changes to the asset are introduced, it redeploys my layer every single time.
The Question What do I have to do in order to have deployments only when the changes are introduced to the asset?