Skip to content

Instantly share code, notes, and snippets.

View jansila's full-sized avatar

jansila

View GitHub Profile
@sators
sators / Extend AppSync API Key Expiration Date.js
Last active May 5, 2023 18:21
Set all App Sync API Key Expiration Dates to 365 Days from <Today> to support Public / Guest APIs
var AWS = require('aws-sdk');
async function asyncForEach(array, callback)
{
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
}
exports.handler = async (event) =>