New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ~ in path are treated as usual character #69
Comments
I think you should use |
Indeed, this The Please note the warning in the function's documentation:
That means that if your home directory on your current computer is
For this particular application I don't think this matters very much, since the file will ultimately still get written in the intended location during the apply phase. It just might seem a little confusing when reviewing the plan diff, so probably best to document this as part of your system to avoid any concerns by your colleagues who are not familiar with this quirk. |
Terraform Version
Terraform v0.14.7
Your version of Terraform is out of date! The latest version
is 0.15.3. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
local_file
Terraform Configuration Files
Expected Behavior
/home/${username}/.ssh/${local.env}.pem created.
Actual Behavior
/home/${username}/current_path/~/.ssh/${local.env}.pem created.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: