VictorOps Empower teams by routing alerts to the right people for collaboration and fast issue resolution.
Using this VictorOps Terraform provider, teams can automate VictorOps setup associated with an application. You can manage the following resources using this provider.
Use the navigation to the left to read about the available resources.
# Intitialize the victorops provider
terraform {
required_providers {
victorops = {
source = "splunk/victorops"
version = "0.1.1"
}
}
}
provider "victorops" {
api_id = var.api_id
api_key = var.api_key
}
# Create a team within victorops
resource "victorops_team" "infrastructure" {
name = "Infrastructure"
}
# Create a user within the victorops organization
resource "victorops_user" "user1" {
first_name = "Jane"
last_name = "Doe"
user_name = "JaneDoe"
email = "jdoe@victorops.com"
is_admin = false // deprecated - We no longer support creating admin users through TF/public APIs. The value in this field is ignored.
replacement_user = "myDefaultVOUser" // optional
// Specify this with the default username to replace all users when deleting users using TF
}
The following arguments are supported:
api_id
- (Required) An API id tied to an admin userapi_key
- (Required) An API key tied to an admin user