diff --git a/packages/amplify-cli-npm/binary.ts b/packages/amplify-cli-npm/binary.ts index 12c850d7938..0fe93f1adde 100644 --- a/packages/amplify-cli-npm/binary.ts +++ b/packages/amplify-cli-npm/binary.ts @@ -75,6 +75,7 @@ const getCompressedBinaryUrl = (): string => { if (process.env.IS_AMPLIFY_CI && process.env.CODEBUILD_SRC_DIR) { // use cloudfront distribution for e2e url = `https://${process.env.PKG_CLI_CLOUDFRONT_URL}/${version}/${compressedBinaryName}`; + url = url.replace('.tgz', `-${getCommitHash()}.tgz`); } else if (process.env.IS_AMPLIFY_CI) { url = url.replace('.tgz', `-${getCommitHash()}.tgz`); }