Closed Dhina-test closed 1 year ago
You need to create EC2 key pair in the AWS region you use. You can use this module, for example.
Then you will have to specify key_name
argument pointing to the name of that key pair (not filename) in this ec2-instance module.
Please ask generic Terraform questions on discuss.hashicorp.com
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Hi I placed my key pair in currect directoy name as yeshwanth.pem
and for your reference below is my ec2 module terraform code and i defined keypai in veriable section
but in terraform validate gots key pair not exist issue
can you help ?