Skip to content

Pipelines: Conditionally build assets on a hash #35913

@rupe120

Description

@rupe120

Describe the feature

Add a path property for assets, when if set will compute a hash of the folder contents to determine if the asset needs to be rebuilt. If the hash has not changed since last time, use the prior built asset.

Use Case

This would save a lot of processing time in the Assets step of Pipelines. The build logic would need to track the prior asset build from run to run for reuse. The hash could be used as reference.

Proposed Solution

Track the asset and hash map in a file in the common CDK S3 bucket.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

[email protected]

AWS CDK CLI version

2.1031.1 (build a560d1e)

Environment details (OS name and version, etc.)

MacOS 26.0.1 (25A362)

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/pipelinesCDK Pipelines libraryeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions