jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
149 stars 12 forks source link

Indexed Resources using build Pattern #230

Open bjgpnth opened 1 month ago

bjgpnth commented 1 month ago

Is your feature request related to a problem? Please describe.

I am attempting to deploy & manager indexed resources using terraform. I am using provider version 2.9.0. Creating the indexed resource using the build name is successful. I would like to add include and exclude patterns. In the documentation there is no mention of patterns.

https://registry.terraform.io/providers/jfrog/xray/latest/docs/resources/binary_manager_builds

Describe the solution you'd like

Ideally I would like to use a pattern (like project-env_**) which will index all the builds that has names starting with the pattern.

Describe alternatives you've considered The only alternative seems to be add all the build using names explicitly. This will not be efficient as if a new build name is introduced, this is a change in the Terraform code to add that build name.

Terraform code that work

resource "xray_binary_manager_builds" "my-indexed-builds" {
  id = "default"
  indexed_builds  = [ "project1-dev_build-1 ]
}

Terraform that we like to be able to do

resource "xray_binary_manager_builds" "my-indexed-builds" {
  id = "default"
  indexed_builds_patterns  = [ "project1-dev_**" ]
}
alexhung commented 1 month ago

Closely related to #226

Just like the issue with release bundle v2, patterns are not currently supported for builds.

bjgpnth commented 1 month ago

Alex - Thank you for your response. Do you know if this feature will be available anytime soon?

Sam13 commented 1 month ago

+1 from my side

Without pattern support this is useless for me.

alexhung commented 1 month ago

Alex - Thank you for your response. Do you know if this feature will be available anytime soon?

@bjgpnth I've added builds to the internal feature request ticket. I don't have ETA. I encourage you also contact your JFrog support team and make them aware of this.