how to log inside of response template?
0
I have a pipeline response template and inside the "After Mapping" section I want to output to cloud watch a parameters value so I can debug what is going on with the resolver. I am basically looking for a vtl version of console.log()
asked 3 years ago7 views
2 Answers
0
I found a sloppy way of doing it via
$util.validate(false, $record.entity )
This will generate an error in graphql, but it can show what the value was of a variable.
answered 3 years ago
0
You can also just stash the value and it will show up in the logs, depending on your settings.
$util.qr($ctx.stash.put("debugthis", $record.entity))
Also note that your log level in AppSync must be set to ALL if you want to see this output.
answered 3 years ago
Relevant questions
AppSync resolver size limits
Accepted Answerasked 3 years agoRoute53 TXT Record Creation
asked a day agohow to log inside of response template?
asked 3 years agoUnable to map AWS AppSync Custom Error from API Gateway
asked a month agoAWS DMS + OpenSearch + Index templates
asked 4 months agoHow to access API Parameters of a node and add them as part of it's own output json in AWS Step Functions?
asked 2 months agoInternalFailure error from Pipeline Resolver
asked 2 years agoUnable to remove instance type from launch template
asked 4 months agoCan't define an AWS API Gateway mapping template from the console
asked 2 years agoiptables inside container doesn't work - NET_ADMIN also didn't help
asked 3 years ago