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

data sources hcp_packer_{image,iteration} should have a flag to error if latest image is revoked #493

Open
drewmullen opened this issue Mar 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@drewmullen
Copy link

drewmullen commented Mar 29, 2023

Description

There should be a virtual attribute to cause an error from the data source if an image has revoked != nil.

There could also be another virtual attribute to find the latest that is not revoked, which is probably more useful

New or Affected Resource(s)

  • hcp_packer_iteration
  • hcp_packer_image

Potential Terraform Configuration

data "hcp_packer_image" "ubuntu_us_east_2" {
  bucket_name    = "learn-packer-ubuntu"
  cloud_provider = "aws"
  iteration_id   = var.iteration_id
  region         = "us-east-2"

  reject_revoked_latest = true
}

If yall are open to this idea I'm happy to work on a PR

@drewmullen drewmullen added the enhancement New feature or request label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant