Skip to content

Instantly share code, notes, and snippets.

View doapp-ryanp's full-sized avatar

Ryan Pendergast doapp-ryanp

View GitHub Profile
@doapp-ryanp
doapp-ryanp / reproduce.md
Last active April 24, 2017 15:41
16.04 AMIs that don't support ENA
@doapp-ryanp
doapp-ryanp / index.js
Created October 17, 2017 21:28
Image resize Lambda for APIG proxy
'use strict';
const im = require('imagemagick');
const fs = require('fs');
const https = require('https');
const http = require('http');
const url = require('url');
const querystring = require('querystring');
const resize = (srcPath, width, callback) => {
@doapp-ryanp
doapp-ryanp / cloudformation.yml
Created May 16, 2018 13:05
How to get around BinaryMediaTypes CloudFormation bug
ApiGatewayLambdaProxy:
Type : AWS::ApiGateway::RestApi
Properties :
Name : !Ref AWS::StackName
Description: "Single Lambda proxy"
# BinaryMediaTypes: - this is broken in CloudFormation on create
# - "application/protobuf"
Parameters:
endpointConfigurationTypes: EDGE
Body :