IAM error trying to POST to a connection in API Gateway

0

Hello. I have a Java lambda function where I'm attempting to post a websocket message to the API Gateway. I'm getting the following exception:
com.amazonaws.services.apigatewaymanagementapi.model.AmazonApiGatewayManagementApiException: User: arn:aws:sts::413853753523:assumed-role/ConversationProc/WebsocketHandler is not authorized to perform: execute-api:ManageConnections on resource: arn:aws:execute-api:us-east-2:********3523:<API ID>/dev/POST/@connections/{connectionId} (Service: AmazonApiGatewayManagementApi; Status Code: 403; Error Code: AccessDeniedException; Request ID: 6f882ee6-3c65-11e9-973a-873e7d03048e)

However, I have an IAM policy configured for the role ConversationProc that should provide full access to execute-api:
"execute-api:*",

Any idea why I'm still being rejected?

JoelE
已提問 5 年前檢視次數 1106 次
1 個回答
1

Never mind, it just took some time for my policy to take effect.

JoelE
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南