You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force recreation of catalog entity on type change (#75)
https://cortex1.atlassian.net/browse/CET-21595
Update the `cortex_catalog_entity` resource to ensure that changing the
entity type triggers a resource replacement. Include tests to verify
this behavior.
Bump version to 0.4.7 and backfill changelog with previous updates.
Copy file name to clipboardExpand all lines: docs/resources/catalog_entity.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Catalog Entity
55
55
-`snyk` (Attributes) Snyk configuration for the entity. (see [below for nested schema](#nestedatt--snyk))
56
56
-`static_analysis` (Attributes) Static analysis configuration for the entity. (see [below for nested schema](#nestedatt--static_analysis))
57
57
-`team` (Attributes) Team configuration for the entity. Only used for entities of type `TEAM`. (see [below for nested schema](#nestedatt--team))
58
-
-`type` (String) Set when the entity is a Resource or Team. This must match a tag of a valid Resource Definition or be "team" or "domain".
58
+
-`type` (String) Set when the entity is a Resource or Team. This must match a tag of a valid Resource Definition or be "team" or "domain".**Note:** Changing this attribute will force replacement of the resource.
59
59
-`wiz` (Attributes) Wiz configuration for the entity. (see [below for nested schema](#nestedatt--wiz))
MarkdownDescription: "Set when the entity is a Resource or Team. This must match a tag of a valid Resource Definition or be \"team\" or \"domain\".",
76
+
MarkdownDescription: "Set when the entity is a Resource or Team. This must match a tag of a valid Resource Definition or be \"team\" or \"domain\". **Note:** Changing this attribute will force replacement of the resource.",
77
77
Optional: true,
78
+
PlanModifiers: []planmodifier.String{
79
+
stringplanmodifier.RequiresReplace(),
80
+
},
78
81
},
79
82
"definition": schema.StringAttribute{
80
83
MarkdownDescription: "Set when the entity is a Resource. These are the properties defined by the Resource Definition, in JSON format in a string (use the `jsonencode` function to convert a JSON object to a string).",
0 commit comments