Icinga / terraform-provider-icinga2

Terraform Icinga2 provider
https://www.terraform.io/docs/providers/icinga2/
Mozilla Public License 2.0
21 stars 19 forks source link

Error: Failed to Read Notification #47

Open MujahidRashid opened 3 years ago

MujahidRashid commented 3 years ago

Hi After creating a new notification resource

resource "icinga2_notification" "project-stage-website" {
  hostname = "project-stage-website"
  command  = "slack-host-notification"
  users    = ["slack"]
}

the terraform state shows the following

{
  "version": 4,
  "terraform_version": "0.14.6",
  "serial": 4,
  "lineage": "dc265d13-d932-889a-4ab9-0f11cf99fb23",
  "outputs": {},
  "resources": [
    {
      "mode": "managed",
      "type": "icinga2_notification",
      "name": "project-stage-website",
      "provider": "provider[\"registry.terraform.io/icinga/icinga2\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "command": "slack-host-notification",
            "hostname": "project-stage-website",
            "id": "project-stage-website!project-stage-website",
            "interval": 1800,
            "servicename": "",
            "templates": null,
            "users": [
              "slack"
            ],
            "vars": {}
          },
          "sensitive_attributes": [],
          "private": "bnVsbA=="
        }
      ]
    }
  ]
}

rerunning any changes after that gives the following error
Error: Failed to Read Notification project-stage-website! : %!s()

The id field seems weird

Terraform v0.14.6
+ provider registry.terraform.io/icinga/icinga2 v0.5.0-pre