Last active
June 18, 2022 16:22
-
-
Save Rafat97/80373ebb37cce712690f69e4e6b593b4 to your computer and use it in GitHub Desktop.
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
const getBucketName = process.env.AWS_BUCKET_NAME; | |
const getBucketKey = process.env.AWS_BUCKET_KEY; | |
const getNewFileName = process.env.NEW_VIDEO_FILE_NAME; | |
await $`echo "Downloading file..."`; | |
await $`aws s3 cp s3://${getBucketName}/${getBucketKey} ./${getNewFileName}`; | |
await $`echo "Downloading end..."`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment