Event pipe - TF deletes input template whenever there is a modification to filter

Whenever there is a change to the event pipe filter filter_criteria , it deletes input_template on Target Input Transformer and it happens only when deployed via TF , through console it doesn’t delete.

filter_criteria {
filter{
pattern = jsonencode({
“value”: {
“data”: {
“event_type”: [“IdentityIssued”, “IdentityProvisioned”, “OfferingAccountApproved”, “OfferingAccountDeclined”, “AdjudicatePayment”], “destination”: [“XXXX”, “any”]
}, “metadata”: {
“operation”: [“insert”], “table-name”: [“outbox”]
}
}
})
}
}
}
target_parameters {
input_template = “<$.value.data.event>”

sqs_queue_parameters {
message_deduplication_id = “.value.data.de_duplication_id" message_group_id = ".value.data.group_id” }
}