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

[Feature]: filter metal_project by organization_id #770

Open
displague opened this issue Sep 6, 2024 · 1 comment
Open

[Feature]: filter metal_project by organization_id #770

displague opened this issue Sep 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@displague
Copy link
Member

displague commented Sep 6, 2024

Description

filter metal_project by organization_id

New or Affected Terraform Resources

equinix_metal_project

Potential Terraform Configuration

data "equinix_metal_project" "proj" {
  name = "reused project name"
  organization_id = var.organization_id
}
@displague displague added the enhancement New feature or request label Sep 6, 2024
@displague
Copy link
Member Author

displague commented Sep 9, 2024

Additionally, when filtering by name, the current method is a partial string match. If you have projects "foo", "foo-suffix", and "prefix-foo" Terraform will error saying 3 projects were found when 1 was expected.

While organization_id filters should help in that situation, and when multiple orgs have "foo", the prefix/suffix matching impacts filtering within a single organization.

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