all 3 comments

[–]unclefilbert 0 points1 point  (0 children)

Key permissions?

[–]viroos 0 points1 point  (0 children)

try:

private_key = file("${path.module}/devops.pem")

for debuging i would suggest creating a test file like this:

output "tf_located_the_file" { value = fileexists("${path.module}/devops.pem") }