Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Latest commit

 

History

History
56 lines (37 loc) · 1.05 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.05 KB

No Longer maintained moving to node/graphql/react

Tapestry service interface for the Amazon Web Services.

Currently you'll need to build from source then

add this to your POM com.trsvax tapestry-aws-core 0.0.1-SNAPSHOT

add this to your AppModule where the property file contains your AWS credentials binder.bind(AWSCredentials.class, new ServiceBuilder() { public AWSCredentials buildService(ServiceResources serviceResources) { try { return new PropertiesCredentials( new File(System.getProperty("AWS-INI"))); } catch (Exception e) { e.printStackTrace(); } return null; } });

Then use it

S3Index.java

public class S3Index { @Inject private AmazonS3 amazonS3;

@Property
private List<Bucket> buckets;

@BeginRender
void beginRender() {
	buckets = amazonS3.listBuckets();
}

}

S3Index.tml

<t:grid t:id="buckets"/>

For more info http://aws.amazon.com/sdkforjava/