Skip to content

Cannot set multiple notifications for an alert #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
falcon-18-tech opened this issue Dec 1, 2021 · 4 comments
Closed

Cannot set multiple notifications for an alert #626

falcon-18-tech opened this issue Dec 1, 2021 · 4 comments

Comments

@falcon-18-tech
Copy link

Hello,

I wanted to set the multiple notifications for the same alert, but here in terraform resource of "mongodb_alert_configuration" we do not define notifications as an array, it poses a problem.
Whereas in MongoDB API we have the provision of setting up multiple alerts, therefore that must be somehow possible using terraform as well.
Here is the link of the MongoDB Atlas documentation for the creation of alerts using API, which has notification as an array in it's body.

https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/#set-notifications

If that is already possible, do let me know.

@themantissa
Copy link
Collaborator

I don't believe it is currently possible with how the resource is setup but it should be. Let me talk with the team on this item.

@themantissa
Copy link
Collaborator

Internal ticket INTMDB-282

@themantissa
Copy link
Collaborator

@falcon-18-tech so this seems to be a missing bit of documentation/examples on our part. Looking at the code one or more notification block should work for the same alert, e.g.
notification {
//set email
}
notification {
/set sms
}

That should work for you. If so I'll ensure we get the documentation updated to make this clearer.

@falcon-18-tech
Copy link
Author

Yes, it is working.
Thanks for the assistance.

It would be better to reflect this in the documentation as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants