With this document, I can steam cloudwatch logs to a lambda fucntion
functions: myCloudWatchLog: handler: myCloudWatchLog.handler events: - cloudwatchLog: '/aws/lambda/hello'
In this sample, the log group name is hard coded.
But my question is, how do i get current api gateway rest-api id dynamically? Because my lambda function will work on the api gateway log group, which has the name format as: