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

OpsGenie planned Maintenance window is not showing in the GUI - created via terraform. #407

Open
kajal-patel97 opened this issue Oct 23, 2023 · 0 comments

Comments

@kajal-patel97
Copy link

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Please note, that i have tried this with the newest version of terraform but this has still occurred.
Terraform v1.4.5
on darwin_arm64

  • provider registry.terraform.io/hashicorp/time v0.9.1
  • provider registry.terraform.io/pagerduty/pagerduty v3.0.0

Affected Resource(s)

Please list the resources as a list, for example:

  • opsgenie_maintenance

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "opsgenie_maintenance" "qualsys_scan" {
    description = "test"
    rules {
        state = "enabled"
        entity { 
            id = "37d69296-98fe-435a-b5b4-6c3bb2d13f8b"
            type = "integration"
        }
    }
    time {
        type = "schedule"
        start_date = "2023-10-23T17:45:00Z"
        end_date = "2023-10-23T17:50:00Z"
    }   
}

provider "opsgenie" {
  api_key = "" << api key is the correct one used.
  api_url = "api.opsgenie.com" #default is api.opsgenie.com
}
terraform {
  required_providers {
    opsgenie = {
      source  = "opsgenie/opsgenie"
      version = "0.6.28"
    }
  }
}

Expected Behavior

What should have happened?
The terraform applys and it says that the window has been created, i have validated this through using an API call through CLI and it gives me an id for the window, so i know it is there.
The overall aim is to created automated shceduled windows, but for now i am doing a basic test with hardcoded inputs to see if the terraform responds to creating them.

Actual Behavior

What actually happened?

The actual window is not getting created in the Opsgenie GUI, the api key is correct and in the correct environment, the API call shows it is there, but it is not appearing under the team connected to the entity.

Is there a reason why it is not appearing? Is this Normal?

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