Question about how to download a file from AWS S3 to be used in AppVeyor

weerayuth_r's Avatar

weerayuth_r

28 Oct, 2020 12:59 PM

I have a zip file stored in a bucket in AWS S3. I'm trying to find a way to configure the appveyor.yml in order to get the zip file from AWS S3 to be used in a job in AppVeyor.

Would this be possible to do? How should the configuration in appveyor.yml look like?

Any suggestions are appreciated.

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Oct, 2020 05:36 PM

    Feodor Fitsner's Avatar
  2. 2 Posted by weerayuth_r on 29 Oct, 2020 10:09 PM

    weerayuth_r's Avatar

    Thanks Feodor.

    I have successfully set it by using these two commands.

    build_script:
          - ps: Set-AWSCredential -AccessKey %AWS_ACCESS_KEY_ID% -SecretAccessKey %AWS_SECRET_ACCESS_KEY% -StoreAs default
          - ps: aws s3 cp s3://<bucket name>/<filename path> <file output>

  3. weerayuth_r closed this discussion on 29 Oct, 2020 10:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac