Rapyder interview question

Write terraform modules and how to optimise it