{"id":31816640,"url":"https://github.com/splunk/terraform-provider-victorops","last_synced_at":"2025-10-11T09:57:25.292Z","repository":{"id":51257623,"uuid":"290640410","full_name":"splunk/terraform-provider-victorops","owner":"splunk","description":"Manage VictorOps teams, users, escalation policies and routing keys using Terraform","archived":false,"fork":false,"pushed_at":"2023-12-14T18:10:05.000Z","size":99,"stargazers_count":12,"open_issues_count":13,"forks_count":11,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-06-20T12:38:44.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-27T01:08:17.000Z","updated_at":"2024-03-22T01:21:13.000Z","dependencies_parsed_at":"2024-06-20T11:53:51.230Z","dependency_job_id":"4abf4973-2567-48bc-b02e-6b2808cc7164","html_url":"https://github.com/splunk/terraform-provider-victorops","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/splunk/terraform-provider-victorops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fterraform-provider-victorops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fterraform-provider-victorops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fterraform-provider-victorops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fterraform-provider-victorops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splunk","download_url":"https://codeload.github.com/splunk/terraform-provider-victorops/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fterraform-provider-victorops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006746,"owners_count":26084185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-11T09:57:24.326Z","updated_at":"2025-10-11T09:57:25.279Z","avatar_url":"https://github.com/splunk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Terraform `VictorOps` Provider\n=========================\n\n- Website: https://www.terraform.io\n- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)\n- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)\n\n\u003cimg src=\"https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg\" width=\"600px\"\u003e\n\nRequirements\n------------\n\n- A VictorOps account that you want to manage alongwith API key and token.\n- [Terraform](https://www.terraform.io/downloads.html) 0.10.x or higher\n- [Go](https://golang.org/doc/install) 1.14 (to build the provider plugin)\n\nBuilding The Provider\n---------------------\n\nClone repository to: `$GOPATH/src/github.com/splunk/terraform-provider-victorops`\n\n```sh\n$ git clone git@github.com:splunk/terraform-provider-victorops.git $GOPATH/src/github.com/splunk/terraform-provider-victorops\n```\n\nEnter the provider directory and build the provider\n\n```sh\n$ cd $GOPATH/src/github.com/splunk/terraform-provider-victorops\n\n# MacOC\n$ go build\n\n# Ubuntu\n$ make build\n$ cp $GOPATH/bin/terraform-provider-victorops .\n```\n\nFeatures\n------------\nUsing this VictorOps Terraform provider, you can manage the following VictorOps resources.\n\n1. User\n2. Team\n3. User-Team assignment\n4. Escalation Policy\n5. Routing Key\n\nUsage\n------------\n```\nterraform {\n\trequired_providers {\n\t\tvictorops = {\n\t\t\tsource = \"splunk/victorops\"\n\t\t\tversion = \"0.1.1\"\n\t\t}\n\t}\n}\n\nprovider \"victorops\" {\n  api_id  = \"6d700de8\"   // An API id tied to an admin user\n  api_key = \"\u003cREDACTED\u003e\" // An API key tied to an admin user\n}\n\n// Define the first tf-configured user, 'John Dane'\nresource \"victorops_user\" \"jdane_tf\" {\n  first_name       = \"John\"\n  last_name        = \"Dane\"\n  user_name        = \"jdane\"\n  email            = \"jdane51@victorops.com\"\n  is_admin         = false // deprecated - We no longer support creating admin users through TF/public APIs. The value in this field is ignored.\n  replacement_user = \"myDefaultVOUser\" // optional\n  // Specify this with the default username to replace all users when deleting users using TF\n}\n\n// Create a new team\nresource \"victorops_team\" \"team_vikings\" {\n  name = \"VO-Vikings\"\n}\n\n// Assigning an existing user to a team\nresource \"victorops_team_membership\" \"jdane_membership\" {\n  team_id          = victorops_team.team_vikings.id\n  user_name        = victorops_user.jdane_tf.user_name\n}\n\n// Create escalation policies for existing VO rotation (created using portal)\n// Note: You need to fetch an existing Rotation Group Slug for using the Escalation Policy\nresource \"victorops_escalation_policy\" \"high_severity\" {\n  name    = \"High Severity\"\n  team_id = victorops_team.team_vikings.id\n  step {\n    timeout = 60\n    entries = [\n      {\n        type = \"rotationGroup\"\n        slug = \"rtg-wvvhXshpvaRdn7jM\"\n      }\n    ]\n  } \n}\n\n// Create routing keys to push alerts to our escalation policies\nresource \"victorops_routing_key\" \"viking_high_severity\" {\n  name = \"viking-high-severity\"\n  targets = [victorops_escalation_policy.high_severity.id]\n}\n```\n\nDeveloping the Provider\n---------------------------\n\nIf you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.14+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.\n\nTo compile the provider, build the provider as mentioned above. In order to test the provider, you can simply run `make test`.\n\n```sh\n$ make test\n```\n\nIn order to run the full suite of Acceptance tests, run `make testacc`.\n\nAcceptance tests require the following environment variables to be set.\n\n- VO_API_ID\n- VO_API_KEY\n- VO_BASE_URL\n- VO_REPLACEMENT_USERNAME\n    - the default username to replace all users when removed\n\n```sh\n$ make testacc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fterraform-provider-victorops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplunk%2Fterraform-provider-victorops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fterraform-provider-victorops/lists"}