-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support COGNITO_USER_POOLS authorizer #1106
Comments
Hi, I needed a workaround and used this one:
using this script #!/bin/bash
echo {\"id\": \"$(aws apigateway get-authorizers --rest-api-id $1 | jq -r '.items[] | select(.name == "'$2'") | .id')\"} This script uses 'jq' for simplicity. It recives a list of authorizers from aws and selects the item where the name matches and returns the id of this entry in json format. The authorizer can be attached to a gateway method like this:
All of this would have a been a lot easier if one could overright/set variables of the null_resource ;) Hope someone else my find this useful as well. Looking forward for feedback. |
Here is an example is somebody still looking for it:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform Version
0.9.11
Affected Resource(s)
Expected Behavior
type="COGNITO_USER_POOLS" supported
Actual Behavior
not supported
References
The text was updated successfully, but these errors were encountered: