splunk / terraform-provider-victorops

Manage VictorOps teams, users, escalation policies and routing keys using Terraform
Mozilla Public License 2.0
12 stars 11 forks source link

Provider "victorops" not available for installation. #7

Closed requiem240sx closed 3 years ago

requiem240sx commented 3 years ago

I can't get the provider to simply install with no resources being called. (I've also tested with resources and not had any luck).

I've copied the base template from both the github repo as well as VictorOps.

Do I have to install this manually first? I got this working on my personal computer running a later version of Terraform v0.14.2. Trying to get it working in the work environment v0.12.24 with no luck. Could this be the issue? or is there something else I can try/missing?

terraform {
    required_providers {
        victorops = {
            source = "splunk/victorops"
            version = "0.1.1"
        }
    }
}

provider "victorops" {
  api_id  = "6d700de8"   // This is a global Enviroment Varialbe defined in gitlab 
  api_key = "apikeytest" // This is a global Enviroment Varialbe defined in gitlab 
}

// Create a new team
resource "victorops_team" "team_vikings" {
  name = "VO-Vikings"
}
requiem240sx commented 3 years ago

On mac, do a brew upgrade terraform.

Upgraded from v0.12.24 to v0.14.2 and this resolved my issue, The note on the main page says Terraform 0.10.x so i'm still unsure why this wasn't working.

I'm guessing I could build it from scratch and made it work on the older version as well. But did not test this.