Running terraform apply from a Windows machine results in CRLF chars being added to the command of the consul-client container. Wrapping the command value in replace(), similar to what's done within the server module, prevents these from ending up in the resulting task definition.
Running
terraform apply
from a Windows machine results in CRLF chars being added to thecommand
of the consul-client container. Wrapping the command value inreplace()
, similar to what's done within the server module, prevents these from ending up in the resulting task definition.Testing
Before change:
After change: