Skip to Main Content
Amazon EC2 Cookbook
book

Amazon EC2 Cookbook

by Sekhar Reddy, Aurobindo Sarkar
November 2015
Intermediate to advanced content levelIntermediate to advanced
194 pages
4h 16m
English
Packt Publishing
Content preview from Amazon EC2 Cookbook

Accessing AWS S3 from applications

AWS S3 is highly scalable and durable object storage. You only have to pay for the storage you actually use. S3 replicates data in multiple data centers within the region. Further, AWS S3 introduces cross-region replication that replicates your data across AWS regions. In this recipe, we cover both uploading objects to and downloading objects from AWS S3.

How to do it…

  1. Installing AWS Java SDK.

    In your Maven dependency section, add the following dependency for AWS Java SDK Version 1.9.28.1:

    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk</artifactId>
        <version>1.9.28.1</version>
    </dependency>
  2. Create a bucket.

    The following sample Java program creates a S3 bucket called laurenceluckinbill in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Amazon EC2

Programming Amazon EC2

Jurg van Vliet, Flavia Paganelli
AWS SysOps Cookbook - Second Edition

AWS SysOps Cookbook - Second Edition

Eric Z. Beard, Rowan Udell, Lucas Chan

Publisher Resources

ISBN: 9781785280047Supplemental Content