» Opsgenie Provider

The Opsgenie provider is used to interact with the many resources supported by Opsgenie. The provider needs to be configured with the proper credentials before it can be used.

Use the navigation to the left to read about the available resources.

» Example Usage

# Configure the Opsgenie Provider
provider "opsgenie" {
  api_key = "key"
  api_url = "api.eu.opsgenie.com" #default is api.opsgenie.com

# Create a user
resource "opsgenie_user" "test" {
  # ...

» Configuration Reference

The following arguments are supported:

  • api_key - (Required) The API Key for the Opsgenie Integration. If omitted, the OPSGENIE_API_KEY environment variable is used.

  • api_url - (Optional) The API url for the Opsgenie.

You can generate an API Key within Opsgenie by creating a new API Integration with Read/Write permissions.

» Testing and Development

In order to run the Acceptance Tests for development, the following environment variables must also be set: