Make the app_id optional in the mongodbatlas_event_trigger resource when an aws_eventbridge event processor is defined
Currently, when you define a trigger that uses the AWS Eventbridge via the UI it auto creates a realm App that links the DB change to the event bridge.
However, with the mongodbatlaseventtrigger resource you have to manually defined an empty realm app and give the resource the app_id of that empty app.
This is obviously not a 100% automated process.
This could be, if the provider created the empty realm app by itself, then referencing the created app app_id.
This would only be needed:
1. when the appid is not provided
2. the following attribute was provided
eventprocessors {
awseventbridge {
configaccountid = "AWS ACCOUNT ID"
configregion = "AWS REGIOn"
}
}
3. otherwise use the provided app_id
This would still support the case when the eventbridge even processor was used and a pre-existing realm app with custom logic was also defined.
This would make the provision of an Eventbridge trigger totally automated.