vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
149 stars 111 forks source link

Allow capture of existing vApp to new template in a catalogue #307

Open ghost opened 5 years ago

ghost commented 5 years ago

Terraform Version Terraform v0.12.6 provider.vcd v2.4.0

Affected Resource(s) vcd_catalog_item

It would be great if one could specify an existing vApp and be able to capture it as a template within a specified catalogue. I currently do this through a complex PowerShell script that interacts with the vCloud API, so it would be great if there was a vcd implementation for it instead. Something like the below...

resource "vcd_catalog_item" "myNewCatalogItem" {
  org       = "my-org"
  catalog = "my-catalog"

  vcd_vapp             = "web"
  description          = "new vapp template"
  overwrite             = false
  storage_lease      = 1 (in hours)
  customise            = true
}
ghost commented 5 years ago

305

carlschroder commented 2 years ago

This functionality would save me having to maintain a lengthy Powershell script, that frankly is a PITA

Any comments kind people?