• Products
  • Get started
  • Documentation
  • Resources

Opsgenie Terraform Provider

Opsgenie Terraform provider enables you to interact with many resources supported by Opsgenie such as users, teams, escalations etc.. You can easily manage your Opsgenie resources by codifying APIs into declarative configuration files to code, edit, review or version your configurations.

Setup

Opsgenie Terrraform Provider release is available here: https://github.com/opsgenie/terraform-provider-opsgenie

You can refer this page to learn more about setup and configuration details:
https://www.terraform.io/docs/providers/opsgenie/index.html

Capabilities

Opsgenie Terraform provider creates and manages the following resources with Terraform.

  • Users (without User Contact API),

  • Teams (with or without members),

  • API and Email Based Integrations

  • Escalations

  • Schedules

  • Schedule Rotations

Provider Configuration

Opsgenie Terraform Provider configuration requires an API key and an API URL. The API key can be obtained from Settings --> API Key Management in Opsgenie.

JSON

1 2 3 4 provider "opsgenie" { api_key = "api-key" api_url = "api.opsgenie.com" }

If you are on EU instance, make sure that the api_url is given as api.eu.opsgenie.com.

Last modified on Mar 23, 2021
Cached at 8:58 PM on Jun 12, 2021 |

Additional Help

Ask the Community