aws / aws/aws-extensions-for-dotnet-cli
'package' command should be able to create deterministic zip archives
- Dominant language
- C#
- Stars
- 393
- Forks
- 90
- Avg merge
- 2d 19m
- Merged PRs (30d)
- 3
Description
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: https://github.com/aws/aws-cdk/pull/2931 . Probably same approach could be used.
---
This is a :rocket: Feature Request
Contributor guide
Research direction
Start at the `dotnet lambda package` command and review the linked AWS CDK pull request for its deterministic archive approach. The work is complete when repeated packaging produces archives with timestamps removed and entries in a consistent order, avoiding changes when the contents are unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, csharp
- Domain
- build-system, cli, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100