terraform-provider-vcd icon indicating copy to clipboard operation
terraform-provider-vcd copied to clipboard

data source vcd_catalog_access_control needed to share a catalog with more orgs

Open carmine73 opened this issue 1 year ago • 5 comments

Description

My use case is the following: I have a catalog shared to some orgs, I would like to share this catalog to more orgs.

I have a similar need for plugins, and I do:

## lookup plugin
data "vcd_ui_plugin" "my_plugin" {
  . . .
}

locals {
  org_ids = setunion(data.vcd_ui_plugin.my_plugin.tenant_ids, [data.vcd_org.org.id]) # new org added
}

## import plugin
import {
  to = vcd_ui_plugin.my_plugin
  id = local.my_plugin_id
}

# publish plugin
resource "vcd_ui_plugin" "bck_plugin" {
  . . .
  tenant_ids = local.org_ids # merge between current orgs list and org to add
}

Is there a way to do the same things with shared catalogs?

New or Affected Resource(s)

  • new data source vcd_catalog_access_control

carmine73 avatar Feb 08 '24 12:02 carmine73