-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 plan fails with "Invalid provider configuration was supplied" warning when changing cluster subnets #1707
Comments
This issue has been automatically marked as stale because it has been open 30 days |
This issue has been resolved in version 18.0.0 🎉 |
I can confirm that with v18.0.1, terraform plan completes without error; however, the apply fails because the cluster must be replaced, and it tries to create the cluster before destroying: Cluster already exists with name: terraform-issue-1707-eks Should I open a new issue, or reopen this one? |
@gpothier its unclear what issue you are facing and what desired outcome you are trying to achieve. if you are still facing an issue on v18.x, I would suggest opening a new issue |
ok, created issue #1752. |
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. |
Description
When adding a new subnet, or replacing one of the existing ones with a new one, or removing a subnet, Terraform fails to plan. It seems the provider configuration is not properly initialized, and it tries to access the k8s API server at localhost instead of the proper host when refreshing the aws_auth configmap. Reordering subnets do not cause the issue. The new subnet itself was created by terraform in a previous apply, without any problem.
EDIT: I now created a completely stripped down test case to easily reproduce the issue: https://github.com/gpothier/terraform-aws-eks-issue-1707. I particular, it doesn't use a submodule anymore, everything is in root. This is a pretty much by-the-book usage of the EKS module.
Versions
Terraform v1.0.11
Reproduction
Steps to reproduce the behavior:
EDIT:
Clone this project: https://github.com/gpothier/terraform-aws-eks-issue-1707
Plan & apply a first time, then change the value of
autoscaling_azs
interraform.tfvars
from 2 to 3, and attempt to plan again. It will fail. It also fails if initially applying with 3 subnets and then changing to 2.Expected behavior
Terraform should be able to produce a plan regardless of subnets used in cluster
Actual behavior
Terraform fails to produce a plan
Terminal Output Screenshot(s)
Terraform plan final output:
And this is somewhere in the middle with TL_LOG=TRACE:
The text was updated successfully, but these errors were encountered: