We’ve run into a problem with loading up modules using Terraform on dockerized worker tentacles(build in step Plan to Apply Terraform template):
Initializing modules…
module.main
Getting source “modules”
module.main.eventdatastore
Error downloading modules: Error loading modules: module eventdatastore: GetFileAttributesEx \ContainerMappedDirectories\7EDE6436-CCFA-43B3-8119-71F871016536\Work: The system cannot find the path specified.
Adding journal entry:
It seems that the workers in docker containers do not resolve #{Octopus.Machine.Id} correctly and return a null which then in turn does not set the path to modules.
When we pull package locally the path gets resolved without any issues.
What would be the best way to work around this step apart from executing it on a full blown tentacle?
Thanks for getting in touch! This might take a little while to drill down to the exact problem. Can you help me by answering a few questions?
Let’s continue this conversation in private for now by sending the response to support@octopus.com - after which we will report back with our findings.
Please send a screenshot of the Terraform step, or you can export the JSON and send that to me if you’d prefer (you can do this directly in the step UI).