'package' command should be able to create deterministic zip archives #195
Labels
feature-request
A feature should be added or improved.
module/cli-ext
p2
This is a standard priority issue
queued
We create zip archives for our lambdas using "dotnet lambda package" command, and then use "cdk deploy" to deploy them to our environments. Currently this has an issue - created zip archives contain timestamps, therefore those archives are different for each build, and therefore CDK deploys them each time even if nothing is changed.
As a workaround, currently we provide custom AssetHash (based on archive content), but I'd prefer to remove it.
Describe the Feature
'package' command should produce zip archives with striped timestamps and with consistent order.
Is your Feature Request related to a problem?
Slower CDK deployments.
Describe alternatives you've considered
Custom AssetHash.
Additional Context
This issue was actually solved in CDK itself: aws/aws-cdk#2931 . Probably same approach could be used.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: