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?

1 Risposta
1

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

JoelE
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande