Skip to content

Instantly share code, notes, and snippets.

Antonius Golly AntoniusGolly

  • Berlin, Germany
Block or report user

Report or block AntoniusGolly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AntoniusGolly
AntoniusGolly / index.js
Created Mar 18, 2018
Sample Node.js script for resizing images with the Sharp library
View index.js
'use strict';
const AWS = require('aws-sdk');
const S3 = new AWS.S3({
signatureVersion: 'v4',
});
const sharp = require('sharp');
const BUCKET = process.env.BUCKET ? process.env.BUCKET : "mybucket";
const URL = process.env.URL ? process.env.URL : "http://localhost:5858"; // for local development
@AntoniusGolly
AntoniusGolly / policy.json
Last active Mar 18, 2018
Basic policy for lambda function execution with rights to access S3 bucket and logs
View policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
You can’t perform that action at this time.