@Goldyn, George
I understand you are wanting to use Terraform and load the cloud-init using custom_data. Please correct me if I am misunderstanding the issue.
Yes, you should be able to do this. I believe this blog post covers exactly what you are trying to do. Check it out and let me know if that helps.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.