Docker password storage in terraform script

Hi All,
can anyone please suggest me a way to store my docker password in terraform file ,userdata so that I can havea secure login without having to expose my password in any of my files in my github repo