lib/plugins/aws/customResources/resources/utils.js/getEnvironment
function getEnvironment(context) {
  const arn = context.invokedFunctionArn.match(
    /^arn:aws.*:lambda:(\w+-\w+-\d+):(\d+):function:(.*)$/
  );
  return {
    LambdaArn: arn[0],
    Region: arn[1],
    AccountId: arn[2],
    LambdaName: arn[3],
  };
}