Creating a spacelift_plugin_template with the same name attribute as a 'global' template will create a new template, but with exactly the same attributes as the 'global' template.
From the UI both templates show up, but it's not possible to delete either one of them. OpenTofu reports a successful deletion but doesn't actually delete it. Renaming the template is successful and removes the duplication.
Simple reproduction (you can put anything in the YAML):
resource "spacelift_plugin_template" "wiz" {
name = "wiz"
manifest = file("${path.module}/plugins/wiz.yaml")
}
Creating a spacelift_plugin_template with the same
nameattribute as a 'global' template will create a new template, but with exactly the same attributes as the 'global' template.From the UI both templates show up, but it's not possible to delete either one of them. OpenTofu reports a successful deletion but doesn't actually delete it. Renaming the template is successful and removes the duplication.
Simple reproduction (you can put anything in the YAML):