Skip to content

Add support for packer init with multiple .hcl files #1271

@rhys96

Description

@rhys96

When the packer configuration is separated across multiple .hcl files, Terratest does not initialise packer when Template in the packer.Options is set to ".". To get Terratest to initialise packer, I have to set Template to the path of a .hcl file.

Is there an additional setting I am missing from my packer options? Or, is a modification to terratest required?

packerOptions := &packer.Options{
  Template: ".",

  WorkingDir: ".",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions