Jenkins unable to access key file. I keep getting permission “denied” when trying to run jenkins build
Task is to provision an instance with terraform and install tomcat with ansible using a jenkins job. I’ve been able to this on the server using terraform apply. When i try to do it on Jenkins it fails and on looking at the output when it gives permission denied when trying to access the file path where the key is. I need a solution or someone who has experienced similar because I’ve tried a lot of things. whoami is tomcat, because Jenkins is running on tomcat. Jenkins output
top of terraform main.tf file