Run terraform on Octopus server

Hi all,
I wish to run a simple terraform plan command using a step process and powershell on the octopus server. However, due to the fact that is running as NT Authority it seems that it does not have the appropriate access.
If I create a PS file and just call it via the PS step to be executed using runas, then i cannot see the log of the script executing.
Is there a workaround on this one?
Thank you.

Hi @andreas1,

Thanks for reaching out, and welcome to our forum!

It’s possible to have the Tentacle service run under a service account, which should allow you to run the Terraform plan when the correct permissions are applied to the account.

We have an excellent document that can assist you with this: Running Tentacle under a specific user account.

Is that something that you’d be able to try out? Let me know how you get on, and we can move forward from there!

Kind Regards,
Adam

1 Like

Thank you @adam.hollow . Very useful and I have adopted it successfully in my project.
Thank you again.

1 Like

Hi @andreas1,

That’s great to hear!
Thanks for letting me know you were able to get everything working.

Should you run into any issues in future, don’t hesitate to reach out again.

Kind Regards,
Adam