Skip to content

The sentry_issue_alert.name attribute is both read-only and required at the same time. #570

Open
@iabramov

Description

@iabramov

0.14.3

There is an issue with the "sentry_issue_alert.name" attribute:
Running terraform plan results in the following errors:

If I set the name attribute:

resource "sentry_issue_alert" "backend-new-issues" {
  name         = "backend-new-issues"
terraform plan
╷
│ Error: Invalid Configuration for Read-Only Attribute
│ 
│   with sentry_issue_alert.backend-new-issues,
│   on alerts.tf line 3, in resource "sentry_issue_alert" "backend-new-issues":
│    3:   name         = "backend-new-issues"
│ 
│ Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration line setting the value.

However, if I remove the name attribute:

resource "sentry_issue_alert" "backend-new-issues" {
  # name         = "backend-new-issues"
terraform plan
 Error: Missing required argument
│ 
│   on alerts.tf line 1, in resource "sentry_issue_alert" "backend-new-issues":
│    1: resource "sentry_issue_alert" "backend-new-issues" {
│ 
│ The argument "name" is required, but no definition was found.

Shouldn’t this attribute not be read-only?
Relevant code references in the provider:

https://github.com/jianyuan/terraform-provider-sentry/blob/v0.14.3/internal/provider/resource_issue_alert.go#L72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions