-
Notifications
You must be signed in to change notification settings - Fork 949
Need instructions for migrating from hashicorp/github to integrations/github #652
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
AuthenticationProviderStatus: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseType: Breaking changeUsed to note any change that requires a major version bumpUsed to note any change that requires a major version bumpType: DocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Now that GitHub has taken over ownership of the github provider we need some instructions for upgrading.
I tried the obvious:
- update
required_providers:- change
sourceattribute tointegrations/github. - change
versionto4.2.0(from4.1.0in my case)
- change
terraform state replace-provider registry.terraform.io/hashicorp/github registry.terraform.io/integrations/githubterraform init- This shows it installing both hashicorp 4.1.0 and integrations 4.2.0
terraform plan
Unfortunately, it then seems to hang forever.
TRACE shows that it is trying to access github.com (it should be using our enterprise server) without specifying the org using the hashicorp 4.1.0 provider:
[DEBUG] plugin.terraform-provider-github_v4.1.0_x4: GET /orgs//teams/sre-team HTTP/1.1
[DEBUG] plugin.terraform-provider-github_v4.1.0_x4: Host: api.github.com
There is exactly one GET using the 4.2 provider:
[DEBUG] plugin.terraform-provider-github_v4.2.0: GET /api/v3/orgs/the-org-on-our-ghe HTTP/1.1
[DEBUG] plugin.terraform-provider-github_v4.2.0: Host: github.example.com
No matter what I do, terraform insists on using the official hashicorp provider.
$ terraform -version
Terraform v0.14.4
+ provider registry.terraform.io/hashicorp/github v4.1.0
+ provider registry.terraform.io/integrations/github v4.2.0Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AuthenticationProviderStatus: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseType: Breaking changeUsed to note any change that requires a major version bumpUsed to note any change that requires a major version bumpType: DocumentationImprovements or additions to documentationImprovements or additions to documentation