-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform Cloud: Multiple 'schema: unknown provider "registry.terraform.io/-/..."' errors with official providers when upgrading to 0.13 #26075
Comments
I have the same one yesterday, I use the command "terraform state replace-provider" and then it works. |
I'm having this exact problem but I just tried with one of my workspaces and passed. Could be they rolled-out a fix? |
I expect that this will be the case, but I'd like to double check with someone from Hashicorp before doing so since the upgrade guide seems to specifically say that I shouldn't be experiencing any workflow problems.
I just retried my run and it failed in the exact same fashion. 😢 |
Ok, I figured why it worked. I ran those workspaces locally first and then on Terraform Cloud.
If you see the error message, it says that can't find the provider in |
Thanks for reporting this issue! I don't think you should be seeing this error. Unfortunately, I'm unable to reproduce the problem given your steps. Here's what I did, all commands executed locally using the remote backend:
Using these steps as a starting point, are you able to find a way to reproduce the problem? Without a simple reproduction test case, it's very difficult to figure out what could be going wrong here. |
Hey @alisdair! I'm unable to reproduce using those steps. I also tried the same set of steps with a provider "random" {
version = "~> 2.1"
} That didn't reproduce the issue either. I'm inclined to move forward with the
In addition to those explicit dependencies, my configuration also includes resources created by several modules that use the following backward-compatible form to declare provider dependencies: https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/blob/master/versions.tf terraform {
required_version = ">= 0.12.6, < 0.14"
required_providers {
aws = ">= 3.0, < 4.0"
}
} |
This comment has been minimized.
This comment has been minimized.
Ahh, please ignore. This error was due to a mismatch between my local CLI environment and terraform cloud. Closing since the original issue has been resolved. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
The first apply on a new version should not fail after following the upgrade guide and obtaining a clean plan on the new version.
Actual Behavior / Reproduction steps
terraform 0.13upgrade
terraform init
locally (returns cleanly)Additional Context
#25705 indicates that this is an expected error, which is confusing to me after reading the upgrade guide both before and after encountering it:
terraform init
, which is impossible in my workflowIs it expected that users that do not use any in-house providers encounter this error? Are the remediation steps the same? I'd like to confirm before taking any destructive actions like
terraform state replace-provider
. Thanks in advance!References
/cc #25705
The text was updated successfully, but these errors were encountered: