diff --git a/registry-upload/src/awsService.ts b/registry-upload/src/awsService.ts index 7fc9e173..19aa64a8 100644 --- a/registry-upload/src/awsService.ts +++ b/registry-upload/src/awsService.ts @@ -57,6 +57,7 @@ export async function readStackConfiguration(cloudFormationStackName: string): P export async function uploadFileContent(bucket: string, key: string, localFilePath: string): Promise { const stream = createReadStream(localFilePath) + console.log(`Uploading file ${localFilePath} to ${bucket}/${key}...`) await s3Client.putObject({ Bucket: bucket, Key: key, Body: stream }) } @@ -65,4 +66,4 @@ export async function invalidateCloudFrontCache(distributionId: string): Promise const callerReference = Date.now().toString() const invalidationBatch = { CallerReference: callerReference, Paths: { Quantity: 1, Items: ["/*"] } }; await cloudFrontClient.send(new CreateInvalidationCommand({ DistributionId: distributionId, InvalidationBatch: invalidationBatch })) -} \ No newline at end of file +} diff --git a/registry-upload/src/upload.ts b/registry-upload/src/upload.ts index 01ee32da..9d3e1408 100644 --- a/registry-upload/src/upload.ts +++ b/registry-upload/src/upload.ts @@ -15,7 +15,7 @@ export async function upload(args: CommandLineArgs) { const config = await readStackConfiguration(EXTENSION_MANAGER_STACK_NAME) console.log(`Read configuration: bucket ${config.bucketName}, domain: ${config.domainName}`) if (args.dryRun) { - console.log("Dry run, skipping upload") + console.log("Dry run, skipping upload. Specify --no-dry-run to actually upload.") return } await uploadFiles(args.stage, config.bucketName) @@ -67,5 +67,3 @@ async function verifyExtensionEntry(extension: any): Promise { throw new Error(`URL for extension ${id} is invalid`, { cause: error }) } } - -