davidfischer-ch / terraform-provider-aria

This is a Terraform provider for working with VMware's Aria Automation Platform (unofficial).
Mozilla Public License 2.0
3 stars 0 forks source link

Resource `aria_custom_naming` manage changing templates settings #28

Closed davidfischer-ch closed 2 months ago

davidfischer-ch commented 2 months ago

We should not mark templates attributes with RequireReplace, otherwise the whole resource is discarded!

Templates : Instead, we have to set the template's ID to an empty string before the PUT, this will be handled by Aria as a request to create (and discard the previous one) a new "template" matching the new parameters.

-> https://developer.hashicorp.com/terraform/plugin/framework/resources/update#detect-specific-attribute-changes <-