-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assets): Add deploy-time content hash (#2334)
Introduces an `IAsset` interface that centralizes common aspects about assets, such as the `sourceHash` and `bundleHash` properties. The `sourceHash` fingerprints the objects that are used as the source for the asset bundling logic, and is available at synthesis time (it can for example be injected in construct IDs when it one wants to ensure a new logical ID is issued for every new version of the asset). The `bundleHash` fingerprints the result of the bundling logic, and is more accurate than `sourceHash` (in that, if the same source can produce different artifacts at different points in time, the `sourceHash` will remain un-changed, but the `bundleHash` will change. The `bundleHash` is however a deploy-time value and thus cannot be used in construct IDs. Fixes #1400
- Loading branch information
1 parent
28942d2
commit 9b4db42
Showing
64 changed files
with
1,382 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
*.tsbuildinfo | ||
.cdk.staging | ||
|
||
.vscode | ||
# VSCode extension | ||
.vscode/ | ||
/.favorites.json | ||
|
||
# TypeScript incremental build states | ||
*.tsbuildinfo | ||
|
||
# Local state files & OS specifics | ||
.DS_Store | ||
node_modules | ||
node_modules/ | ||
lerna-debug.log | ||
dist | ||
pack | ||
dist/ | ||
pack/ | ||
.BUILD_COMPLETED | ||
.local-npm | ||
.tools | ||
coverage | ||
.local-npm/ | ||
.tools/ | ||
coverage/ | ||
.nyc_output | ||
.LAST_BUILD | ||
*.sw[a-z] | ||
*~ | ||
|
||
# we don't want tsconfig at the root | ||
# We don't want tsconfig at the root | ||
/tsconfig.json | ||
|
||
# CDK Context & Staging files | ||
cdk.context.json | ||
tsconfig.tsbuildinfo | ||
.cdk.staging/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.