LTM Limited Interview Question

Write some terraform code for creating ec2 instance