Skip to content

Getting remote-exec provisioner error running terraform apply -auto-approve #268

Answered by phaer
TimHeckel asked this question in Q&A
Discussion options

You must be logged in to vote

This looks like you've got an SSH_AUTH_SOCK set in your shell, but it's referring to a socket with does not exist on your local macOS system.
This could be because there's actually no SSH agent running on your system. I don't use macOS, so I can't help you here.

If you are intending to simply use an SSH key stored in a file which you declared in you terraform vars, you could try to
unset SSH_AUTH_SOCK in you shell before running terraform apply, then ssh shouldn't look for a socket there.

EDIT: If my guess is correct, you should get a similar error if you try to ssh to any other host (might depend on details in your local ssh config).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TimHeckel
Comment options

Answer selected by TimHeckel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants