github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/configs/configupgrade/doc.go (about)

     1  // Package configupgrade upgrades configurations targeting our legacy
     2  // configuration loader (in package "config") to be compatible with and
     3  // idiomatic for the newer configuration loader (in package "configs").
     4  //
     5  // It works on one module directory at a time, producing new content for
     6  // each existing .tf file and possibly creating new files as needed. The
     7  // legacy HCL and HIL parsers are used to read the existing configuration
     8  // for maximum compatibility with any non-idiomatic constructs that were
     9  // accepted by those implementations but not accepted by the new HCL parsers.
    10  //
    11  // Unlike the loaders and validators elsewhere in Terraform, this package
    12  // always generates diagnostics with paths relative to the module directory
    13  // currently being upgraded, with no intermediate paths. This means that the
    14  // filenames in these ranges can be used directly as keys into the ModuleSources
    15  // map that the file was parsed from.
    16  package configupgrade