Terraform local_file resource running on CI Server

Hi, I’m using the local_file resource to create some configuration files that are them push to a git repo. This works great running locally, but from a CI Server every time the pipeline runs it creates those files. Is there a way to handle this better?