Skip to content

Instantly share code, notes, and snippets.

@Rafat97
Last active June 18, 2022 16:22
Show Gist options
  • Select an option

  • Save Rafat97/80373ebb37cce712690f69e4e6b593b4 to your computer and use it in GitHub Desktop.

Select an option

Save Rafat97/80373ebb37cce712690f69e4e6b593b4 to your computer and use it in GitHub Desktop.

Revisions

  1. Rafat97 revised this gist Jun 18, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions test.mjs
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,6 @@ const getBucketName = process.env.AWS_BUCKET_NAME;
    const getBucketKey = process.env.AWS_BUCKET_KEY;
    const getNewFileName = process.env.NEW_VIDEO_FILE_NAME;

    await $`Downloading file...`;
    await $`echo "Downloading file..."`;
    await $`aws s3 cp s3://${getBucketName}/${getBucketKey} ./${getNewFileName}`;
    await "Downloading end...";
    await $`echo "Downloading end..."`;
  2. Rafat97 revised this gist Jun 18, 2022. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion test.mjs
    Original file line number Diff line number Diff line change
    @@ -1 +1,7 @@
    console.log(process.env)
    const getBucketName = process.env.AWS_BUCKET_NAME;
    const getBucketKey = process.env.AWS_BUCKET_KEY;
    const getNewFileName = process.env.NEW_VIDEO_FILE_NAME;

    await $`Downloading file...`;
    await $`aws s3 cp s3://${getBucketName}/${getBucketKey} ./${getNewFileName}`;
    await "Downloading end...";
  3. Rafat97 created this gist Jun 18, 2022.
    1 change: 1 addition & 0 deletions test.mjs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    console.log(process.env)