GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/storage/s3-sdk at master · ey00/java-docs-samples

Expand file tree

/

s3-sdk

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

s3-sdk

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Using Google Cloud Storage (GCS) with the S3 SDK

Google Cloud Storage features APIs that allows developers to store and access arbitrarily-large objects. The GCS XML API provides support for AWS S3 API users that use S3 SDKs. Learn more about Migrating to GCS.

Prerequisites

Install Maven.

Setup

  1. Clone this repo.

    git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  2. Change into this directory:

    cd java-docs-samples/storage/s3-sdk
    
  3. Build this project from this directory:

    mvn package
    
  4. Get your Interoperable Storage Access Keys and set the following environment variables:

Test Sample

  1. Set the following environment variable with the default project for Interoperable Storage Access Keys.

    • GOOGLE_CLOUD_PROJECT_S3_SDK=[GOOGLE_PROJECT_ID]
    • STORAGE_HMAC_ACCESS_KEY_ID=[ACCESS_KEY_ID]
    • STORAGE_HMAC_ACCESS_SECRET_KEY=[ACCESS_SECRET_KEY]
  2. Run test using the following Maven command:

    mvn verify
    

Products

  • Google Cloud Storage

Language

  • Java

Dependencies

  • AWS S3 Java SDK
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.