LTM Limited interview question

Write some terraform code for creating ec2 instance