UNPKG

artillery-plugin-aws-sigv4

Version:

A plugin for artillery.io that add an authentication header to every request that conforms to V4 of the AWS Signature Specification. See https://github.com/shoreditch-ops/artillery. Also see http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.htm

22 lines (18 loc) 543 B
'use strict' module.exports.hello = async (event, context) => { console.log('EVENT: \n' + JSON.stringify(event, null, 2)) // return context.logStreamName return { statusCode: 200, body: JSON.stringify( { message: 'Go Serverless v1.0! Your function executed successfully!', input: event }, null, 2 ) } // Use this code if you don't use the http event with the LAMBDA-PROXY integration // return { message: 'Go Serverless v1.0! Your function executed successfully!', event }; }