-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default, the S3 client will use MD5 checksums. But in FIPS environments, those MD5 checksums will not work because Node will not have access to an M5 digest. Force the usage of SHA256 for these checksums instead.
- Loading branch information
Showing
4 changed files
with
63 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "38.0.1", | ||
"files": { | ||
"asset1": { | ||
"type": "file", | ||
"source": { "path": "/Users/huijbers/Downloads/HEY-arm64.dmg" }, | ||
"destinations": { | ||
"dest1": { "bucketName": "huijbers-test-objectlock", "objectKey": "hey.dmg" } | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -eu | ||
scriptdir=$(cd $(dirname $0) && pwd) | ||
|
||
path=$(realpath $1) | ||
|
||
cat <<EOF > $scriptdir/manual-test-manifest.json | ||
{ | ||
"version": "38.0.1", | ||
"files": { | ||
"asset1": { | ||
"type": "file", | ||
"source": { "path": "$path" }, | ||
"destinations": { | ||
"dest1": { "bucketName": "$2", "objectKey": "$3" } | ||
} | ||
} | ||
} | ||
} | ||
EOF | ||
|
||
npx ts-node $scriptdir/../bin/cdk-assets.ts -v -p $scriptdir/manual-test-manifest.json publish |
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