Amazon S3 deployment

Ben's Avatar

Ben

11 Feb, 2015 11:48 PM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Feb, 2015 12:21 AM

    Feodor Fitsner's Avatar

    Let me check please.

  2. Support Staff 2 Posted by Feodor Fitsner on 12 Feb, 2015 02:23 AM

    Feodor Fitsner's Avatar

    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. 3 Posted by Ben on 12 Feb, 2015 02:22 PM

    Ben's Avatar

    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?

  4. Support Staff 4 Posted by Feodor Fitsner on 12 Feb, 2015 02:27 PM

    Feodor Fitsner's Avatar

    Nope, it's just a single method in AWS SDK .NET API.

    Make sure region is small caps. Possible values:

    us-east-1
    us-west-1
    us-west-2
    eu-west-1
    eu-central-1
    ap-northeast-1
    ap-southeast-1
    ap-southeast-2
    sa-east-1
    us-gov-west-1
    cn-north-1
    
  5. 5 Posted by Ben on 12 Feb, 2015 04:43 PM

    Ben's Avatar

    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.

  6. Support Staff 6 Posted by Feodor Fitsner on 12 Feb, 2015 05:39 PM

    Feodor Fitsner's Avatar

    There is AWS SDK .NET installed on build workers.

    You can try installing AWS PowerShell tools using Chocolatey: https://chocolatey.org/packages/AWSTools.Powershell

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

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

Recent Discussions

20 Mar, 2019 10:44 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM
20 Mar, 2019 08:48 PM
20 Mar, 2019 08:02 PM