Directory makes sure a directory is present on disk


# will create or ensure a directory is present "hello" {
  destination = "hello"

# it can also accept a "create_all" parameter to do the equivalent of "mkdir -p" "deeper" {
  destination = "deeper/a/b/c"
  create_all  = true


  • destination (required string)

the location on disk to make the directory

  • create_all (bool)

whether or not to create all parent directories on the way up