Using environment variables for (secure) S3 key material
I'd rather rotate S3 deployment keys through settings instead of through version control (there are several reasons to prefer that), so I tried some configuration like the following:
deploy:
- provider: S3
access_key_id:
secure: $(ARTIFACTS_KEY)
secret_access_key:
secure: $(ARTIFACTS_SECRET)
bucket: $(ARTIFACTS_BUCKET)
(...)
And setting the ARTIFACTS_* variables through the appveyor settings, but it doesn't seem to work for the key and secret (it works for the bucket name). Is there a way to make this work?
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 15 May, 2016 06:05 PM
It should be:
2 Posted by glandium on 15 May, 2016 11:20 PM
This requires setting the variables in plain text in the settings, doesn't it?
Support Staff 3 Posted by Feodor Fitsner on 15 May, 2016 11:22 PM
No, just tick "lock" sign on them (you are configuring them on UI, right?). "Secure" variables behave as regular environment variables except they are not set during PR builds.
4 Posted by glandium on 15 May, 2016 11:41 PM
I'm configuring them in the UI, indeed. So to be clear, I need to enter them in plain text and use the lock sign?
Support Staff 5 Posted by Feodor Fitsner on 15 May, 2016 11:42 PM
Correct.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.