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

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

Open
boopathykpm opened this issue Jun 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@boopathykpm
Copy link

boopathykpm commented Jun 24, 2024

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

@boopathykpm boopathykpm added the bug Something isn't working label Jun 24, 2024
@ksatirli
Copy link
Member

Hey @boopathykpm, thanks for reporting this.

Can you share a (minimal, but "breaking") example of the code you run so we can replicate it?

Optionally, feel free to share a link to a GHA output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants