Amazon S3 deployment
I thought I'd posted this earlier but can't find it...
How can I set the Amazon region with an S3 deployment? I've set the bucket name but the deployment errors - I've tried just the name and also the eu-west-1 endpoint.
Secondly, I have a node project that puts all the files it
builds into a folder called dist
. I have created an
artifact with the path dist/*
and want the contents of
the placed in a folder called assets on my S3 bucket. At the moment
it appears to be trying to place the files in
assets/dist/file.css
.
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 12 Feb, 2015 12:21 AM
Let me check please.
Support Staff 2 Posted by Feodor Fitsner on 12 Feb, 2015 02:23 AM
Apparently, the error
Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests.
appears for just added buckets while their DNS is propagating. Also, no region specified means "Standard US" region.Anyway, we've added "Region" setting to S3 provider. Will be deployed later today.
Regarding artifact paths - to strip
dist
from artifact paths you can use approach shown here (last two PowerShell examples): http://www.appveyor.com/docs/packaging-artifacts#pushing-artifacts-...3 Posted by Ben on 12 Feb, 2015 02:22 PM
Thanks Feodor.
The Powershell works perfectly.
I've added a setting called Region to my YAML file and I'm not getting an "Access denied" error. I've checked the permissions of the AWS IAM account being used in the policy simulator and it should be OK.
Are there any logs where I can view the deployment to S3 in more detail?
Support Staff 4 Posted by Feodor Fitsner on 12 Feb, 2015 02:27 PM
Nope, it's just a single method in AWS SDK .NET API.
Make sure
region
is small caps. Possible values:5 Posted by Ben on 12 Feb, 2015 04:43 PM
I've given the AWS account being used for deployment full permission to the S3 bucket and it seems to work which is great. I'll have to investigate what specific permissions it needs and adjust accordingly.
Are the AWS Powershell tools available? I'm wondering if I could then remove existing files that are no longer needed.
Support Staff 6 Posted by Feodor Fitsner on 12 Feb, 2015 05:39 PM
There is AWS SDK .NET installed on build workers.
You can try installing AWS PowerShell tools using Chocolatey: https://chocolatey.org/packages/AWSTools.Powershell
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.