-
Notifications
You must be signed in to change notification settings - Fork 66
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
local_file resource should have modes, not set executable bit by default #19
Comments
I think the |
I agree, getting this issue when saving off files that need less permissive modes. |
While we don't have a proper solution for that, I'm using the following workaround.
Not the best solution, but did the trick for me! Hope it helps. |
@rodrigocmn Thank you for that work around, that work great for my scenario! |
Very nice trick! |
Looks like #5 will close this |
Modes are now supported (implemented in pull request #30), use |
This is not working for me. When I create my local file i set this parameter |
This issue was originally opened by @kojiromike as hashicorp/terraform#14768. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
0.9.5
Affected Resource(s)
Terraform Configuration Files
My umask here is 0022
Expected Behavior
A file should have been created with mode
-rw-r--r--
.Actual Behavior
A file was created with mode
-rwxr-xr-x
.Humble Opinions
While I would prefer the option of providing a specific mode in tf configuration, I think Terraform should fallback to supporting the standard behavior of
open
, which would result in the file not being executable.The text was updated successfully, but these errors were encountered: