opsgenie / terraform-provider-opsgenie

Terraform OpsGenie provider
https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs
Mozilla Public License 2.0
100 stars 136 forks source link

Feature: output the API key for opsgenie_service objects #364

Open baygaillardclasspass opened 1 year ago

baygaillardclasspass commented 1 year ago

Terraform Version

0.13.5 (sorry, we're trying to upgrade)

Affected Resource(s)

Terraform Configuration Files

data "opsgenie_team" "team" {
  name = var.opsgenie_team
}

resource "opsgenie_service" "service_critical" {
  name  = title(var.service_name)
  team_id = data.opsgenie_team.team.id
}

resource "datadog_integration_opsgenie_service_object" "service_integartion" {
  name             = title(var.service_name)
  opsgenie_api_key = <------ THIS IS THE PART I NEED
  region           = "us"
}

Expected Behavior

I should be able to link to the API key for the specific service I created in the datadog integration object

Actual Behavior

There appears to be no such output

Steps to Reproduce

  1. terraform apply on the above
BapRx commented 1 year ago

I opened a support ticket and Atlassian created an issue to track this bug, you can vote here to increase the visibility: https://jira.atlassian.com/browse/OPSGENIE-1345