Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
Opsgenie Terraform provider lets you 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.
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
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
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
5
6
7
8
9
10
11
12
terraform {
required_providers {
opsgenie = {
source = "opsgenie/opsgenie"
version = "0.6.8"
}
}
}
provider "opsgenie" {
# Configuration options
}
If you are on EU instance, make sure that the api_url is given as api.eu.opsgenie.com.
Was this helpful?