-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xray_ignore_rule doesnt have an update resource function, causes error #156
Comments
@gschaffer-cxn This is because the Xray API for Ignore Rules do not support update. I will need to mark the |
@alexhung figured its something like this. I was able to use null resource and lfecycle rules to set up a parameterzed ForceNew like behavior, but hope this gets implemented soon.
This causes the null resource to count as trigger for replacement, and replace_triggered_by can act on this. Not the prettiest workaround but its better than manual tainting. |
Add 'ForceNew' setting to all nested attributes
@gschaffer-cxn I've released a new version which should trigger Terraform to re-create the resource if |
Describe the bug
We wanted to change and xray ignore rule to edit the component being edited. The change is very basic just remove the component version
Requirements for and issue
Perform a basic update on a resource
Expected behavior
Terraform updates the resource
Additional context
Terraform produces an error like this
My quick investigation produces that ignore_rule doesnt have an update function specified, so if my understanding is correct it causes the error.
terraform-provider-xray/pkg/xray/resource_xray_ignore_rule.go
Line 549 in bc0277c
The error message is generated when terraform tries to call the update function of that schema https://github.com/hashicorp/terraform/blob/main/internal/legacy/helper/schema/resource.go#L314
The text was updated successfully, but these errors were encountered: