Skip to content
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

Path ending in '/' should ignore content and just create dir #50

Open
innovate-invent opened this issue Nov 13, 2020 · 2 comments
Open

Comments

@innovate-invent
Copy link

Terraform Version

0.13.5

Affected Resource(s)

local_file

Terraform Configuration Files

resource "local_file" "dir" {
  filename = "${path.module}/subfolder/"
  directory_permission = "0700"
}

Expected Behavior

Create path with permission

Actual Behavior

Error: open /home/nolan/Projects/docker/subfolder/: is a directory

Steps to Reproduce

  1. terraform apply
@tristanmorgan
Copy link
Member

I'm tempted to say there should be a local_dir resource instead....

@innovate-invent
Copy link
Author

True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants