Google Apps Script modules for AWS, etc.
- Create a new File > Script in your Google Apps Script project.
- Use the base name of the script module you're interested in, e.g. "GasAWS" (this becomes
GasAWS.gs
). - Call the module's functions.
For example, after copying the contents of GasAWS.js
to a new GasAWS.gs
script file you can try running this:
function TestGas() {
AWS.init("access_key-id", "secret-access-key");
let response = AWS.request('ec2', 'DescribeInstances', {"Version":"2015-10-01"});
Logger.log(response);
}
Voila!