I am working on the first task on the Kodekloud Engineer. i am sure the terraform task i created is correct but it keeps failing me on the task.
“Create Key Pair Using Terraform”
I am working on the first task on the Kodekloud Engineer. i am sure the terraform task i created is correct but it keeps failing me on the task.
“Create Key Pair Using Terraform”
Hi bro ,
Make sure the key pair is created entirely through Terraform, not manually. The .pem
file should be generated by Terraform using the tls_private_key
and local_file
resources, and the key name must exactly match the task requirements.
I think the pem key needs to be in /home/bob
directory, and I see that it’s in /home/bob/iac-server
.
Confirm the location where the key needs to be stored.
Hi @reyvanth
The only issue I see that could be causing the problem is the file_permission
in the `local_file_block.
Try removing this and check.