https://pulumi.com logo
#general
Title
# general
a

acoustic-magazine-13505

12/10/2018, 9:53 AM
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

big-piano-35669

12/10/2018, 9:12 PM
@lemon-spoon-91807?
l

lemon-spoon-91807

12/10/2018, 9:18 PM
@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

acoustic-magazine-13505

12/10/2018, 11:53 PM
Ok good to know, thanks 👍