KodeKloud Engineer-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 @dejavxtrem101

It’s working fine on my side. Please try again and make sure the path is correct.

I am terraform task has been complete , i am get below error

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.

Hi @reyvanth

The key pair name should be xfusion-kp not xfusion-kp.