Comments (4)
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.
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.
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.
that did it. thanks.
from aws-ant-task.
Related Issues (10)
- Pepijn Schmitz proposal HOT 1
- Binary 1.3 JAR is not downloadable HOT 1
- WARNING: Unable to execute HTTP request: my-bucket.US HOT 4
- secret security? HOT 1
- contentEncoding attribute? HOT 3
- Allow cache control to be string HOT 2
- CloudFront invalidation with fileset HOT 2
- Cachecontrol headers issue: s3put doesn't support the nested "cachecontrol" element. HOT 2
- S3GetTask 404 Errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-ant-task.