Example Terraform Code for AWS provider, resources aws_key_pair

This command would generate a public and private key
$ ssh-keygen -f terraform_ec2_key

This resources would import aws key pair

Rajesh Kumar
Follow me