GitHub OpenGraph preview
README
AWS の S3 を Google Apps Script上の V8 エンジンで利用するためのライブラリです。 コンパイルした後 clasp を使って Google Apps Script へデプロイして使用します。 通常の AWS SDK for JavaScript は GAS 上では動作しなかったため、このライブラリを作成しました。
参考元のリポジトリのコードをベースに、TypeScript で書き直したあと、更に getSignedUrl を追加で実装したものです。
npm install s3-for-gas-light
使用例:
import { S3 } from "s3-for-gas-light";
const accessKey = "your-access-key";
const secretKey = "your-secret-key";
const region = "ap-northeast-1";
const bucketName = "your-bucket-name";
const objectKey = "your-object-key.json";
const jsonData = JSON.stringify({ key: "value" });
const s3 = new S3(accessKey, secretKey, { region });
s3.putObject(bucketName, objectKey, jsonData);
Logger.log("S3にアップロードしました。");
2025/3/24 作成
バグ報告や機能追加の提案は歓迎します。プルリクエストもお待ちしております。
このプロジェクトは Apache License 2.0 の下でライセンスされています。
This project includes code from the following third-party components:
S3-for-Google-Apps-Script by Eng Etc LLC
AWS SDK for JavaScript by Amazon.com, Inc.
The full text of all licenses can be found in the LICENSE file.