Using Console
Using CLI
<event-bus-name>
with the name of the custom EventBus identified in step 2:
resource-policy.json
). Here is an example of a resource policy that allows CloudWatch events:<event-bus-name>
with the name of the custom EventBus:Using Python
remove_permission
method from Boto3 to remove the misconfigured resource policy attachment from the custom EventBus. You will need to specify the EventBus name and the statement ID of the resource policy to be removed.