Skip to content

Instantly share code, notes, and snippets.

@managedkaos
Last active Jan 19, 2021
Embed
What would you like to do?
"#<LambdaContext:0x000055e3817a4030 @clock_diff=1611091363834, @deadline_ms=1611091662175, @aws_request_id=\"ddd82629-22a9-4e2e-a84d-ad85b359e192\", @invoked_function_arn=\"arn:aws:lambda:us-east-1:388085464911:function:apimachine-staging\", @log_group_name=\"/aws/lambda/apimachine-staging\", @log_stream_name=\"2021/01/19/[$LATEST]a2b2b90da5d146b6a01531ae7cc035c1\", @function_name=\"apimachine-staging\", @memory_limit_in_mb=\"128\", @function_version=\"$LATEST\">"
{
event: "{}",
context: ""#<LambdaContext:0x000055e3817a4030 @clock_diff=1611091363834, @deadline_ms=1611091662175, @aws_request_id=\"ddd82629-22a9-4e2e-a84d-ad85b359e192\", @invoked_function_arn=\"arn:aws:lambda:us-east-1:388085464911:function:apimachine-staging\", @log_group_name=\"/aws/lambda/apimachine-staging\", @log_stream_name=\"2021/01/19/[$LATEST]a2b2b90da5d146b6a01531ae7cc035c1\", @function_name=\"apimachine-staging\", @memory_limit_in_mb=\"128\", @function_version=\"$LATEST\">""
}
{
"event": "{}",
"context": {
"@clock_diff": "1611091363834",
"@deadline_ms":"1611091662175",
"@aws_request_id":"ddd82629-22a9-4e2e-a84d-ad85b359e192",
"@invoked_function_arn":"arn:aws:lambda:us-east-1:388085464911:function:apimachine-staging",
"@log_group_name":"/aws/lambda/apimachine-staging",
"@log_stream_name":"2021/01/19/[$LATEST]a2b2b90da5d146b6a01531ae7cc035c1",
"@function_name":"apimachine-staging",
"@memory_limit_in_mb":"128",
"@function_version":"$LATEST"
}
}
require 'json'
def handler(event:, context:)
{ event: JSON.generate(event), context: JSON.generate(context.inspect) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment