I’m attempting to set my plugin_cache_dir in my %APPDATA%\terraform.rc config file as follows, and it fails to correctly evaluate the %APPDATA% environment variable.
I’m escaping \ as \\, without this it complains during terraform init.
plugin_cache_dir = "%APPDATA%\\terraform.d\\plugin-cache"
Result: %APPDATA% is evaluated literally, and a new directory is created inside the current working directory where terraform init was executed, literally .terraform\%APPDATA%\terraform.d\plugin-cache
Is this a known issue? Is there a way I should be specifying a Windows environment variable differently?
Thanks