Question about how to download a file from AWS S3 to be used in AppVeyor
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.
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
Support Staff 1 Posted by Feodor Fitsner on 28 Oct, 2020 05:36 PM
Take a look at this article: https://www.appveyor.com/docs/how-to/download-file/
2 Posted by weerayuth_r on 29 Oct, 2020 10:09 PM
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>
weerayuth_r closed this discussion on 29 Oct, 2020 10:09 PM.