How to set an existing IAM role to a new instance while spinning in terraform?
you can add role like below 

role = "${aws_iam_role.ec2_role_name.name}"


Please check - https://www.terraform.io/docs/providers/aws/r/iam_instance_profile.html