It looks like currently you cannot set the `routeR...
# help
g
It looks like currently you cannot set the
routeResponseSelectionExpression
value for routes unless I am overlooking it, but it makes responding to websocket messages a lot easier. Without having that set you have to use the apigateway management api to respond whereas if I set it to
$default
whatever I put in the response body gets sent to the connection for me.
t
Did some research into this, it doesn't look like CDK supports this directly yet. Looks like there's a way to drop down into CfnRouteV2 and set this setting. @Frank should we support this?
I haven't yet had to mess with cfn stuff directly yet so don't have an opinion
g
Trying to go through and use the Cfn stuff now to do it and man they make this wildly complex to try and setup 😅
t
Haha yeah - it's our job to save you from that but we haven't run into this request yet. We can likely simplify this for you so don't spend too much time with it if you have a workaround
g
Yeah there is a workaround for now not ideal but better than trying to work with that for now at least.
f
@thdxr yeah let’s open an issue for now. We probably wont be able to get to this right away. But @Garret Harp can you share a code snippet once you get this to work? We will add that to the issue.