Skip to content
Fork of the official AWS SDK for Java, modified to work from within Google App Engine.
Find file
New pull request
Pull request Compare This branch is 36 commits ahead, 514 commits behind aws:master.
Failed to load latest commit information.
.idea spelling
src Merge branch 'master' of
.gitignore Added third-party dependencies and Ant build.xml file to allow for bu…
LICENSE.txt 'Version 1.0.009 of the AWS Java SDK'
NOTICE.txt 'Version 1.0.009 of the AWS Java SDK' Mentioning dependency on version 1.8.1 of Ant in the README.
aws-java-sdk.iml Fix missing-slash bug, supported by long-overdue first unit test
build.xml Removing the exclusion of S3, since now S3 is confirmed to work (at l…
pom.xml Merge branch 'master' of

AWS SDK for Java on GAE

The official AWS SDK for Java doesn't work on Google App Engine, because the SDK uses the Apache HttpClient whose socket creation antics are not permitted inside the GAE sandbox. There are a number of ways of working around this problem, but this particular fork takes the brute force approach of ripping out Apache HttpClient, and hardwiring the GAE-specific UrlFetchService in its place.

Notable changes from the official version

The SDK was already pretty well isolated from Apache HttpClient, so the code changes are pretty much contained to a single class com.amazonaws.http.HttpClient.

Also, dependencies have changes, since the library now depends on the Google App Engine API, and no longer depends on Apache HttpClient.


There are two possibilities for building the GAE version of the SDK.


Nothing has changed in the Maven department from the official version. It seems to work fine with default Maven settings, fetching all dependencies from public repositories.

$ mvn clean package


Additionally, you can also build with Ant (>= 1.8.1) using the provided build.xml file. Just run the default target with:

$ ant


If you have an existing GAE app, just drop the jar output from this project into yours. GAE apps don't use Maven by default, so you'll have to fish these dependencies from your local maven repository, or find them somewhere else:

    <version>[1.1, 2.0)</version>

Why would I want to use the SDK on GAE anyway?

There is a certain class of app that can benefit from combining the flexibility of AWS with the simplicity of GAE. This is particularly relevant for very low traffic apps which can completely shut down their AWS foot print during periods of very low traffic.

Something went wrong with that request. Please try again.