Creating modules relying on user data scripts

Hi,
I’m trying to build modules that rely on user data scripts and wonder if there is a way for terraform to read user data script from git as it can modules (with source) and pin them to a certain version. the user data scripts are saved as files.
thanks