Closed Kikivsantos closed 1 year ago
Thanks for opening this issue. The ticket INTMDB-1114 was created for internal tracking.
Hi @Kikivsantos
This looks like an issue related how terragrunt is being used. I don't see any usage of constructs similar in functionality like for_each or dynamic blocks to add multiple blocks of notification
in main.tf.
I did come across https://terragrunt.gruntwork.io/docs/features/inputs/ as per which
If the same variable is assigned multiple values, Terraform will use the last value it finds overriding any previous values.
My guess is this is what is happening in this case where notification with type_name = "GROUP"
is only included in the plan.
That said, we would request you to reproduce this issue only with Terraform and let us know if you get similar behavior in that case as well.
@maastha thank you for the answer. It did work using dynamic.
Hi, there.
I'm trying to create MongoDb Atlas alerts with terraform + terragrunt and I got a bug when trying to use more than 1 notification for the same alert.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
main.tf
variavle.tf
terragrunt.hcl
Steps to Reproduce
Expected Behavior
It should create one alert with 2 notification (1 for slack and 1 for group)
Actual Behavior
It creates only with the GROUP notification. Plan result below:
Debug Output
Crash Output
Additional Context
References