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

Error: Missing Authentication Token #13

Closed damiencarol closed 2 years ago

damiencarol commented 2 years ago

Testing with

export VO_API_ID="rhfgh"
export VO_API_KEY="fghgfh"
export VO_BASE_URL="https://alert-mapping.victorops.com/integrations/azure/v1/xxxxxxxxxx"
# VO_REPLACEMENT_USERNAME 

terraform apply --auto-approve

Failing with a simple test:

resource "victorops_routing_key" "routing_key" {
  name = "damien-test"
  targets = []
}
$ ./test.sh
victorops_routing_key.routing_key: Creating...

Error: failed to create routing key (403): {"message":"Missing Authentication Token"}

  on main.tf line 15, in resource "victorops_routing_key" "routing_key":
  15: resource "victorops_routing_key" "routing_key" {
kevalds51 commented 2 years ago

Please skip setting the VO_BASE_URL

It is being set to the default value f https://api.victorops.com in the code itself