Skip to content

Commit

Permalink
fix: Trigger resource force replacement when app id changes (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
maastha committed Aug 18, 2023
1 parent b1c79d0 commit 760f4d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mongodbatlas/resource_mongodbatlas_event_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func resourceMongoDBAtlasEventTriggers() *schema.Resource {
"app_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"name": {
Type: schema.TypeString,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/event_trigger.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 760f4d4

Please sign in to comment.