You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a pattern I've run into more than once, and Terraform should provide helpers to make this less verbose. For starters, it would be useful to have an ensure_permissions helper (perhaps that should be a separate ticket). However, in this case, we don't really need to give our deploy user access to the nginx directories. That stuff should really just be done as root.
One way I thought of is to have a helper that makes all dependencies defined within it be run as root. Imagine something like this:
Here's a snippet from a Terraform config I just wrote:
This is a pattern I've run into more than once, and Terraform should provide helpers to make this less verbose. For starters, it would be useful to have an
ensure_permissions
helper (perhaps that should be a separate ticket). However, in this case, we don't really need to give our deploy user access to the nginx directories. That stuff should really just be done as root.One way I thought of is to have a helper that makes all dependencies defined within it be run as root. Imagine something like this:
The text was updated successfully, but these errors were encountered: