Has anyone else experienced a bug with attaching a...
# general
e
Has anyone else experienced a bug with attaching an Authorizer to routes in HTTP API Gateway? I’m creating a JWT authorizer and then attaching it to several routes using the
authorizerId
property on the route. Pulumi detects it and says it’s going to update it, however, it does nothing on AWS. In fact, when I try to re-deploy, it shows me again that it’s going to update the routes but once again, it does nothing
l
Are you adding it from inside a Promise.then() or Output.apply()?
I see that sort of behaviour mostly in those cases.
e
let me check
I synchronously create the Authorizer and pass the
authorizer.id
to the
authorizerId
property. so I guess I’m passing a Pulumi’s
Output
the context in which I’m building the route is
async
(due to lambda compilation with
esbuild
)
However, if I export the stack, I can see that the right
authorizerId
is there under
inputs
. In the
outputs
key, the
authorizerId
is an empty string. Something went wrong in between
l
If you have the time, you could try to reproduce the issue in Terraform.. that would tell you whether or not Pulumi is at fault.