User_data in aws_launch_template requires filebase64

is there a way to pass a user data script with variables in this scenerio?

I manage to overcome that by using the function base64encode on templatefile :]