How to include external "USER_DATA" file while running Terraform spec template

We have:

main.tf (which references user_data.sh for “USER_DATA” )

user_data.sh - We can not seem to find a way to include the user_data.sh as a spec template in our layout.