-
Notifications
You must be signed in to change notification settings - Fork 63
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
Ability to set explicit permissions on files included in archives #59
Comments
This feature would give a workaround for #58 |
The workaround in #90 has been released in terraform-provider-archive v2.2.0 which adds |
output_file_mode hasn't resolve this issue for the dynamic source block.. I have the following code. When I inspect the archive.zip files all the permissions are set to "0644" instead of "0755"
I think the solution proposed in this issue makes more sense as you might want different permissions for each file
|
Terraform Version
v0.12.19
Affected Resource(s)
archive_file
Terraform Configuration Files
Actual Behavior
The file is written to disk using the umask of the host. The file is included in the zip with those same permissions. If the umask is more restrictive than the 755 required by Lambda, the zip is unreadable by Lambda and Lambda fails with a "permission denied".
Expected Behavior
The above is "expected" but is unpredictable - what works on a dev laptop doesn't match what happens on a CI/CD server because it is vulnerable to the host's umask. Instead, the archive_file resource should support a file_permission attribute on sources just like the local_file resource does:
The text was updated successfully, but these errors were encountered: