I have created a nat gateway using terraform . As nat gateway costs more , I have written a python script to delete the nat gateway every night and create it every morning.
Now when I give terraform plan , the state file will be containing the nat gateway which was deleted right , So it is showing that , a new nat gateway will be created.
I dont want to create a new nat gateway , coz every morning a nat gateway will be created using the python script .
How to handle this issue ? Can I update the state file after creating the new nat gateway ?