Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Error: 403 Forbidden: Invalid application key #57

Open
kendricktan opened this issue Jan 15, 2020 · 4 comments
Open

Error: 403 Forbidden: Invalid application key #57

kendricktan opened this issue Jan 15, 2020 · 4 comments

Comments

@kendricktan
Copy link

kendricktan commented Jan 15, 2020

Hi there, just trying to setup pingdom with terraform via the examples, and am getting an 403: invalid application key error.

I'm using a multi-user account and have generated an API key from Integrations -> The Pingdom API with read write access, but I'm thrown the error.

Note: The api_key works when I use curl with it, so I suspect the api_key isn't the invalid one
i.e
curl -X GET https://api.pingdom.com/api/3.1/checks -H 'Authorization:Bearer <api_key>'

variable "pingdom_user" {}
variable "pingdom_password" {}
variable "pingdom_api_key" {}
variable "pingdom_account_email" {} # Optional: only required for multi-user accounts

provider "pingdom" {
    user = "${var.pingdom_user}"
    password = "${var.pingdom_password}"
    api_key = "${var.pingdom_api_key}"
    account_email = "${var.pingdom_account_email}" # Optional: only required for multi-user accounts
}

resource "pingdom_check" "example" {
    type = "http"
    name = "my http check"
    host = "example.com"
    resolution = 5
}
@bakuyaku
Copy link

Looks like this provider uses old version of Pingdom API (2.1 or older), so you have to use API key for old integrations, you can generate it here: https://my.pingdom.com/app/account/appkeys

@camerondavison
Copy link

camerondavison commented Apr 13, 2020

I did the above, but am now getting 403 Forbidden: Not permitted for account type. any idea what that is about?
I had the wrong account_email

@camerondavison
Copy link

seems like maybe this is a dupe of #42

@sontags
Copy link
Contributor

sontags commented Oct 23, 2020

This issue should be fixed using the latest release. Note that the Pingdom API v3.1 is used now, the configuration of the provider has changed:

provider "pingdom" {
    api_token = "${var.pingdom_api_token}"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants