patternMinor
Can you use `aws-sdk` to store objects in Google Storage?
Viewed 0 times
cangoogleyouobjectsstoragestoresdkawsuse
Problem
Google Storage claims they support interoperability in their solution with Amazon AWS S3 and Eucalyptus Systems APIs.
source: https://cloud.google.com/storage/docs/interoperability
Can the
source: https://cloud.google.com/storage/docs/interoperability
Can the
aws-sdk for Java, or Node.js, or Python, be used to store and retrieve objects with the Google Storage APIs?Solution
Yes, you can use the AWS SDK to store objects within google storage.
From Simple migration:
In a simple migration from Amazon S3 to Google Cloud Storage, you can
use your existing tools and libraries for generating authenticated
REST requests to Amazon S3, to also send authenticated requests to
Google Cloud Storage. The changes you need to make to your existing
tools and libraries are described in this section.
To get set up for a simple migration do the following:
(collectively called your Google developer key).
That's it! At this point you can start using your existing tools and
libraries to send keyed-hash message authentication code (HMAC)
requests to Google Cloud Storage.
When you use the Cloud Storage XML API in a simple migration scenario,
specifying the
header lets Cloud Storage know to expect
S3 ACL XML syntax in your request.
Note: A simple migration from Amazon S3 is an easy and quick way to get started using Google Cloud Storage, with a minimal investment
in time and changes to your existing code. After you have some
experience with a simple migration, you can fully transition to Google
Cloud Storage to take advantage of all its features. For more
information, see Full Migration.
From Simple migration:
In a simple migration from Amazon S3 to Google Cloud Storage, you can
use your existing tools and libraries for generating authenticated
REST requests to Amazon S3, to also send authenticated requests to
Google Cloud Storage. The changes you need to make to your existing
tools and libraries are described in this section.
To get set up for a simple migration do the following:
- Set a default Google project.
- Get a developer key.
- In your existing tools or libraries, make the following changes:
- Change the request endpoint to use the Cloud Storage request endpoint.
- Replace the Amazon Web Services (AWS) access and secret key with the corresponding Cloud Storage access key and secret key
(collectively called your Google developer key).
That's it! At this point you can start using your existing tools and
libraries to send keyed-hash message authentication code (HMAC)
requests to Google Cloud Storage.
When you use the Cloud Storage XML API in a simple migration scenario,
specifying the
AWS signature identifier in the Authorizationheader lets Cloud Storage know to expect
x-amz-* headers and AmazonS3 ACL XML syntax in your request.
Note: A simple migration from Amazon S3 is an easy and quick way to get started using Google Cloud Storage, with a minimal investment
in time and changes to your existing code. After you have some
experience with a simple migration, you can fully transition to Google
Cloud Storage to take advantage of all its features. For more
information, see Full Migration.
Context
StackExchange DevOps Q#145, answer score: 8
Revisions (0)
No revisions yet.