How to capture terraform plan summary

Hello folks,

I want to capture terraform plan summary and automate it so that if terraform plan shows any change like 1 to add, 2 to change, 3 to destroy
I would get a notification.

The requirement is I am trying to do an automation by which any change in resource if done in UI will give me an alert by running gitlab job in schedule which will run terraform plan and alert me if it detect any changes

How about redirecting the stdout of terraform plan to a plain text file, and use the grep or other text processing tools to monitor the stdout and capture the planning action?

Terraform plan -out=tfpaln , this doesn’t include summary that is how many resources to be add, change or destroyed