diff --git a/mongodbatlas/resource_mongodbatlas_event_trigger.go b/mongodbatlas/resource_mongodbatlas_event_trigger.go index ac75b75c0c..c29924272a 100644 --- a/mongodbatlas/resource_mongodbatlas_event_trigger.go +++ b/mongodbatlas/resource_mongodbatlas_event_trigger.go @@ -43,6 +43,7 @@ func resourceMongoDBAtlasEventTriggers() *schema.Resource { "app_id": { Type: schema.TypeString, Required: true, + ForceNew: true, }, "name": { Type: schema.TypeString, diff --git a/website/docs/r/event_trigger.html.markdown b/website/docs/r/event_trigger.html.markdown index 0fb8025b9f..d4fc878304 100644 --- a/website/docs/r/event_trigger.html.markdown +++ b/website/docs/r/event_trigger.html.markdown @@ -10,6 +10,8 @@ description: |- `mongodbatlas_event_trigger` provides a Event Trigger resource. +Note: If the `app_id` changes in the mongodbatlas_event_trigger resource, it will force a replacement and delete itself from the old Atlas App Services app if it still exists then create itself in the new Atlas App Services app. See [Atlas Triggers](https://www.mongodb.com/docs/atlas/app-services/triggers/) to learn more. + ## Example Usages ### Example Usage: Database Trigger with Function