│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to resource.sentry_notification_action.default, provider "provider[\"registry.terraform.io/jianyuan/sentry\"]" produced an unexpected new value: .projects[0]: was cty.StringVal("test-service"), but now cty.StringVal("").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
This causes the notification to be recreated each time with a terraform plan:
Error: Client Error
│
│ with sentry_notification_action.this,
│ on main.tf line 19, in resource "sentry_notification_action" "this":
│ 19: resource "sentry_notification_action" "this" {
│
│ Error creating notification action: POST https://sentry.io/api/0/organizations/test/notifications/actions/: 400 map[projects:[Each action for 'spike-protection' trigger must apply to one project]]
Inconsistent terraform state
Example:
Error:
This causes the notification to be recreated each time with a terraform plan:
Perhaps this is because the project attribute is a list of the project slugs, and the sentry api seems to show the project ID in the response? https://docs.sentry.io/api/alerts/create-a-spike-protection-notification-action/
Additional issue: One notification action for multiple project slugs
Example:
Error: