Deploying is failing with Cognito Authorizer


#1

Hi,

I’m trying to follow these instructions https://rubyonjets.com/docs/routing/authorizers/authorizer-cognito/ to create Cognito user pool authorizer. But jets deploy -command seems to fail every time with the error:
ERROR: Template error: instance of Fn::GetAtt references undefined resource MainAuthorizer

I’m kind of assuming that Jets would generate
/tmp/jets/demo/templates/demo-dev-authorizers-main_authorizer.yaml file and that would include link to my Pool ARN. But there isn’t such file or any yaml that would refer to my user pool.

Should I still do something addition to these https://rubyonjets.com/docs/routing/authorizers/authorizer-cognito/ instructions? Or is there a bug in Jets’ code?

(Jets version is 2.2.2 and Ruby 2.5.4)


#2

This was a bug. Thanks for surfacing. Fixed in https://github.com/tongueroo/jets/pull/372


#3

Great!

It works.

Thank you very many :slight_smile: