title: Deploy Application to AWS EC2 Instance using terraform
body: <p>I need to deploy my Java application to AWS EC2 Instance using terraform. <strong>The catch here, we should not use *.pem file to deploy the application</strong>.</p>
  
  <p>I try to create ELB and associate instances using terraform.I can able to deploy the application using ssh and pem file to ec2 instances Private IPs. But we shouldn't use *.pem or *.ppk file, as it'll not be allowed in production servers.</p>
  
  <p>I tried using chef with terraform , but that also requires *.pem to connect to AWS Instances.</p>
  
  <p>Please let me know the detailed steps/suggestions of how to deploy the application using terraform without using pem file.</p>