[[aws-apps-scripts]]を使う。 ```ts const props = PropertiesService.getScriptProperties(); AWS.init( props.getProperty("ACCESS_KEY_ID"), props.getProperty("SECRET_ACCESS_KEY") ); declare let path: string; declare let obj: Object; declare let BUCKET: string; const res = AWS.request( "s3", "ap-northeast-1", "PutObject", {}, "PUT", JSON.stringify(obj), { "Content-Type": "application/json" }, path, { Bucket: BUCKET } ); const code = res.getResponseCode(); const text = res.getContentText(); if (code >= 400) { throw Error(`AWS.request failed: ${code} - ${text}`); } ```