Coder Social home page Coder Social logo

wrong endpoint? about aws-ant-task HOT 4 CLOSED

mediamods avatar mediamods commented on July 18, 2024
wrong endpoint?

from aws-ant-task.

Comments (4)

wdalmut avatar wdalmut commented on July 18, 2024

Hi,

no absolutely, the ant task uses the Java SDK in order to upload files and its not related to website hosting.

Can you copy & paste an abstract of your task for upload? (do not copy your aws credentials)

Thanks
Walter

from aws-ant-task.

mediamods avatar mediamods commented on July 18, 2024

If I omit endpoint (as I used to do back with version ~ .3), I get a different error

Status Code: 301, AWS Service: Amazon S3, AWS Request ID: 2E41F2D50B1535BE, AWS Error Code: PermanentRedirect, AWS Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint., S3 Extended Request ID: 9h4FylBPvAsldLuYtinwyTgiWBPGh/q3+c10GTldHzXXwo6r49PaNbGYhSs7s9YK

Here is my task:

        <taskdef name="s3put" classname="it.corley.ant.S3PutTask" classpath="aws-ant-tasks-0.5-SNAPSHOT.jar"/>

        <s3put
                endpoint="s3-us-east-1.amazonaws.com"
                key="${aws.access_key}"
                secret="${aws.access_secret}"
                bucket="mmods-home"
                dest="site/${date-now}">
            <fileset dir="${client-pub}">
                <exclude name="**/*.html"/>
            </fileset>
            <contenttypemapping extension=".js" contenttype="text/javascript"/>
            <contentencodingmapping extension=".gz.js" encoding="gzip"/>
            <contenttypemapping extension=".css" contenttype="text/css"/>
            <contentencodingmapping extension=".gz.css" encoding="gzip"/>
            <contenttypemapping extension=".png" contenttype="image/png"/>
            <contenttypemapping extension=".ico" contenttype="image/vnd.microsoft.icon"/>
            <contenttypemapping extension=".gif" contenttype="image/gif"/>
        </s3put>

from aws-ant-task.

wdalmut avatar wdalmut commented on July 18, 2024

Can you try to use the Standard US endpoint instead the real region? (I think that it works only for US regions)

s3.amazonaws.com

from aws-ant-task.

mediamods avatar mediamods commented on July 18, 2024

that did it. thanks.

from aws-ant-task.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.