-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws_apigatewayv2.CfnRoute: CDK doesn't detach authorizer properly #20695
Comments
You have to explicitly set aws-cdk/packages/@aws-cdk/aws-apigatewayv2/lib/http/authorizer.ts Lines 259 to 265 in 45e4e43
|
|
Much appreciated! @tmokmss @peterwoodworth
|
@m1n9o Ah sorry for misleading suggestion! I'll fix my comment above 🙏 |
No misleading at all, I just want to attach my attempts. 😄 Much appreciate your suggestion! 😉 |
Describe the bug
I defined the router with authorizer like below and deployed it. Everything is fine, I could see the JWT authorizer attached on my route.
When the deployment is run through the command line it actually detects that the route has a changed config and goes to update but then the update does nothing
Expected Behavior
CDK should be able to detach JWT authorizer.
Current Behavior
Even though we can see the correct changes in CFN, it can't detach the authorizer as expected.
Reproduction Steps
aws_apigatewayv2.CfnRoute
to define route with the authorizer and deploy.aws_apigatewayv2.CfnRoute
to define route without authorizer on same route as above and deploy.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.20.0
Framework Version
No response
Node.js Version
v16.3.0
OS
MacOs
Language
Python
Language Version
3.10.4
Other information
No response
The text was updated successfully, but these errors were encountered: