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

V3.1 update #77

Merged
merged 9 commits into from
Oct 20, 2020
Merged

V3.1 update #77

merged 9 commits into from
Oct 20, 2020

Conversation

joshsouza
Copy link
Contributor

@joshsouza joshsouza commented Sep 16, 2020

This is a work in progress. It relies on the code in russellcardullo/go-pingdom#59 to handle the teams/contacts stuff that has been revamped on Pingdom's side.

I've been testing it out with the examples on a test account and it's worked, with the following tests:

  • Creation/deletion from a clean slate
  • Updating an existing contact or team
  • Reconciling changes made to contacts or teams outside Terraform
  • Recreation of contacts/teams deleted outside Terraform

None of the check stuff was touched, and I haven't tested those out explicitly. That said, we've been running off of the earlier version of this PR (before the team/contact stuff) for months, and the check stuff has been working just fine, so I don't expect any work needs to be done there.

@joshsouza
Copy link
Contributor Author

This will resolve #42

@joshsouza joshsouza marked this pull request as ready for review October 13, 2020 17:14
@joshsouza
Copy link
Contributor Author

@russellcardullo I think this is now ready for your review.
It'll be a breaking change, as the authentication interface has been reworked with the new API token stuff.
My team has been running off of this branch for a while, and while we primarily only utilize checks, it's been operational for us.

@zoltan-patchworks
Copy link

@joshsouza is there a way to use it before @russellcardullo merges it and becomes available on Terraform Registry?

@russellcardullo
Copy link
Owner

LGTM thanks!

@russellcardullo russellcardullo merged commit 775f941 into russellcardullo:master Oct 20, 2020
@joshsouza joshsouza deleted the v3.1-update branch October 20, 2020 15:24
@joshsouza joshsouza mentioned this pull request Oct 20, 2020
@nlamirault
Copy link
Contributor

Great ! thanks @joshsouza

@zoltan-patchworks
Copy link

zoltan-patchworks commented Oct 20, 2020

@joshsouza @russellcardullo

What is the new provider syntax?

terraform {
  required_providers {
    pingdom = {
      source  = "russellcardullo/pingdom"
      version = "1.1.3"
    }
  }

  required_version = ">= 0.13"
}


provider "pingdom" {
  pingdom_api_token = "..."
}

terraform plan gives me the following error:

Error: Unsupported argument

  on main.tf line 47, in provider "pingdom":
  47:   pingdom_api_token = "..."

An argument named "pingdom_api_token" is not expected here.

@zoltan-patchworks
Copy link

@russellcardullo do you want me to open a separate issue for that?

@joshsouza
Copy link
Contributor Author

@zoltan-patchworks

terraform {
  required_providers {
    pingdom = {
      source  = "russellcardullo/pingdom"
      version = "1.1.3"
    }
  }

  required_version = ">= 0.13"
}


provider "pingdom" {
  api_token = "..."
}

That should do it for ya

@zoltan-patchworks
Copy link

Thanks, it worked.

@zburgermeiszter zburgermeiszter mentioned this pull request Oct 21, 2020
@zoltan-patchworks
Copy link

Fixed, and opened a PR. #80

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

Successfully merging this pull request may close these issues.

4 participants