mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
240 stars 167 forks source link

[Bug]: `team_name` field in `mongodbatlas_alert_configuration` is ReadOnly #2446

Closed minzetaos closed 1 month ago

minzetaos commented 1 month ago

Is there an existing issue for this?

Provider Version

v1.17.3

Terraform Version

v1.5.2

Terraform Edition

Terraform Open Source (OSS)

Current Behavior

When specify team_name field in mongodbatlas_alert_configuration, it returns

Error: Invalid Configuration for Read-Only Attribute
│
│   with mongodbatlas_alert_configuration.alerts["0"],
│   on main.tf line 18, in resource "mongodbatlas_alert_configuration" "alerts":
│   18: resource "mongodbatlas_alert_configuration" "alerts" {
│
│ Cannot set value for this attribute as the provider has marked it as
│ read-only. Remove the configuration line setting the value.

Terraform configuration to reproduce the issue

resource "mongodbatlas_alert_configuration" "alerts" {
  project_id = var.project_id
  event_type = var.event_type
  enabled    = var.enabled

  notification {
    type_name  = "TEAM"
    team_name = var.team_name
  }
}

Steps To Reproduce

Run terraform plan Then got the error msg showed above

Logs

No response

Code of Conduct

github-actions[bot] commented 1 month ago

Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:

The ticket CLOUDP-262656 was created for internal tracking.

github-actions[bot] commented 1 month ago

This issue has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!