EventBridge PutEvent failing

0

I have a lambda function that is attempting to create an event (for EventBridge). The lambda executes under a role that has full EventBridge access.

The lambda is currently failing with the following error

2022-10-01T21:20:11.918Z 01544211-1978-414c-92d7-97f08fd94490 fail Amazon.EventBridge.AmazonEventBridgeException: User: arn:aws:sts::############:assumed-role/FCKM-lambda-standard/ClinMod_fileAdded is not authorized to perform: events:PutEvents on resource: arn:aws:events:eu-west-2:############:event-bus/model-etl because no identity-based policy allows the events:PutEvents action

The role has the AWS policy "AmazonEventBridgeFullAccess" added which includes

    {
        "Effect": "Allow",
        "Action": "events:*",
        "Resource": "*"
    },

Why is this failing?

1 Antwort
0

Are the lambda function and the Eventbridge bus in the same AWS account?

profile pictureAWS
EXPERTE
beantwortet vor 2 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