Skip to content

Packer validate and build failing when using "build_resource_group_name" #107

@boopathykpm

Description

@boopathykpm

I am facing an issue with "setup-packer" when using "build_resource_group_name" in the packer configuration file.

The gitHub action pipeline fails with the error "Specify either a location to create the resource group in or an existing build_resource_group_name, but not both"

It will fail when location and build_resource_group_name parameters are used together, but my config doesn't have both parameters together.

  1. When both parameters are present - packer validate is succeeding, but packer build failing with the above-mentioned error.
  2. When the location parameter is not present and build_resource_group_name is present - packer validate is failing, it is not allowing my pipeline to move forward.

I tested the same code on my local by installing packer directly from Hashicorp website. I'm not facing any issues as mentioned above with that package.

packer version 1.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions