Skip to content
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

contact_points in scaleway_cockpit_alert_manager syntax #2750

Open
sebastienbaillet opened this issue Sep 27, 2024 · 1 comment
Open

contact_points in scaleway_cockpit_alert_manager syntax #2750

sebastienbaillet opened this issue Sep 27, 2024 · 1 comment

Comments

@sebastienbaillet
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.9.4 with Terraform Scaleway Provider 2.45.0

provider "registry.terraform.io/scaleway/scaleway" {
  version     = "2.45.0"
  constraints = ">= 2.38.1"
  hashes = [
    "h1:TUNrkoCHyGUJrmpOjg+Wfyf8IYe/6X6D2yu11Vi9UoM=",
    "zh:11dc4916523a65acf06555816ed09a5d5267477b8c005c48f91ed036a1e8d93a",
    "zh:20f8ee896d88ea85b89fb73311341a90ffe6c8c3211e5b710c7c8daa977d6156",
    "zh:2d9a0dd05c34d36469625b139b8089b8dd9f93b92d18e3af24aaf6f37620c727",
    "zh:3d0e1a19edbf707d488e3f35b1d6fdd1922cd1a376ff78314d4f06fd63666840",
    "zh:676872e1613714e9f7d619eae23c33a96b423d27d378a2b935e773d9c6f79edf",
    "zh:87b038b2e7d51c50469fa95dcd8a1a8c21fcc1decd75a49b6367fc80a1ac5809",
    "zh:97bd93434231540cad2516e33e5f90edc9d2bd3d4eaabaefbdd76117004f7283",
    "zh:a2c4ee0b8a81c61714d52449aeb92c8fae2d002b93865a355f72f18072171e8b",
    "zh:a55372fc3470c493fa053d404f3332d2ffba3a70696b3926ac2fcc8852b6055a",
    "zh:c0c413943a14a7a2cb277b12e6a70f4647e3ad34abc6fe7368c726ba3d2b31ff",
    "zh:c0e0779ccc8233a8efa1ae0d9d3f23becc1ef6cdff00ca083282939e3d639631",
    "zh:d40e4a9acd839589ad01ebed256b19725f31b4308681e11ea4a22ed0285963ee",
    "zh:de1a592889747125dc739f4b1dfb20f848ffcc10a0c25272f8f2fd90b435940e",
    "zh:fa200b7e1e24d63d5d4eb4ff4e44c00a6f7cfb883ce1eee98eb74a539f91774d",
  ]
}

Affected Resource(s)

  • scaleway_cockpit_alert_manager

Terraform Configuration Files

resource "scaleway_cockpit_alert_manager" "scaleway_alert_manager" {
  enable_managed_alerts = true
  contact_points = [{
      email = "[email protected]"
    },
    {
      email = "[email protected]"
    }
  ]
}

Expected Behavior

It should work as described in the documentation.

Actual Behavior

Following error:

╷
│ Error: Unsupported argument
│
│   on monitoring.tf line 7, in resource "scaleway_cockpit_alert_manager" "scaleway_alert_manager":
│    7:   contact_points = [
│
│ An argument named "contact_points" is not expected here. Did you mean to define a block of type "contact_points"?
╵

Steps to Reproduce

Just terraform apply a scaleway_cockpit_alert_manager resource described above.

This was working in 2.44.0.
I was able to make it work in 2.45.0 with the following syntax:

resource "scaleway_cockpit_alert_manager" "scaleway_alert_manager" {
  enable_managed_alerts = true
  
  contact_points {
    email = "[email protected]"
  }
  
  contact_points {
    email = "[email protected]"
  }
}

Is it a bug in code or in documentation ?

@sebastienbaillet
Copy link
Author

Nevermind, I don't think it worked in 2.44.0 either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant