Is there any documentation someone can point me to...
# general
a
Is there any documentation someone can point me to for how to setup
aws.apigateway.x.API
with a cognito user pool authorizer? The closest I've found was in this slack from @white-balloon-205 3 months ago.
b
@lemon-spoon-91807?
l
@acoustic-magazine-13505 it's not something i've ever attempted before... however, looking at AWS's docs here: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html it doesn't look it should be too much trouble.
i'm reading through it now
Ah, based on the docs, this may not be something supported currently
it looks lke in order to do this, it's necessary to add a block like this to the swagger API we generate:
Copy code
"security": [
          {
            "MyUserPool": ["com.hamuta.movies/drama.view", "<http://my.resource.com/file.read>"]
          }
        ],
but there's no real way to customize this swagger string currently.
I'll open an issue to track us trying to come up with a solution herein the future
Oh, looks like we have an issue on htis already: https://github.com/pulumi/pulumi-aws/issues/352
I'll addthis thread as another report of this being wanted.
a
Ok good to know, thanks 👍