Error when deleting partner event source in aws EventBridge

0

I'm trying to delete a partner event source in AWS EventBridge using the aws cli command

aws events delete-parter-event-source --region <region> --name <partnereventname> --account <accountnumber> but I'm getting the error:

Caller is not whitelisted for event source partner namespace aws.partner/salesforce.com

The partner event is a Salesforce environment that was refreshed recently, so I need to delete the old partner event.

Someone know how can I proceed?

2 Answers
0

This is a two step process to delete the partner event source/event bus which got created by Salesforce Event relay.

  1. First step to login to salesforce account-->Go to Setup-->Search for "EVENT RELAYS" and click on it--> select the Event Relay corresponding to your partner event bus name --> click Delete (After Event Relay deleted in Salesforce account, your Partner event source gets deleted in your AWS account)
  2. Second step to delete the associated partner event bus and Rule from the "Event Buses" page of Amazon Event Bridge console

Please approve and like my answer if you find it helps you in anyway.

Thanks

answered 10 months ago
0

We cannot remove it as it is an API used by SaaS partners as described in the documentation below.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/events/delete-partner-event-source.html

This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.

When you delete an event source, the status of the corresponding partner event bus in the Amazon Web Services customer account becomes DELETED.

I believe that to disconnect from salesforce, you would need to delete the settings on the salesforce side.
Then delete the associated EventBridge event rule.
Delete the event bus that was used in the event rules.

profile picture
EXPERT
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions