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
gefragt vor 5 Jahren1106 Aufrufe
1 Antwort
1

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

JoelE
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen