-
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
(apigatewayv2): grantManagementApiAccess only grants "POST" #18410
Comments
Since GET is also available on the @connections API to get the status of the connection, should the resource pattern also allow that method? Seems like the pattern for a stage should look like Do you agree? |
|
What is the problem?
The grantManagementApiAccess function on the WebSocketApi (or WebSocketStage), creates the following iAM permission:
arn:aws:execute-api:us-east-1:account-id:api-id/stage-name/POST/@connections/*
.This denies the iAM user "DELETE" permissions on the WebSocketApi. Example iAM denied error:
I believe the naming of the
grantManagementApiAccess
function implies that DELETE should be allowed. If not, perhaps there should another iAM granting method to prevent from the user from having to write a custom iAM policy.Reproduction Steps
What did you expect to happen?
I expected grantManagementApiAccess to grant the "DELETE" permission for the WebSocketApi.
What actually happened?
The grantManagementApiAccess function only granted the "POST" operation.
CDK CLI Version
2.1.0
Framework Version
2.3.0-alpha.0
Node.js Version
14
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: