-
-
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
Error when using cluster_id
output in other modules/actions
#275
Comments
Another example of this issue: provider "kubernetes" {
config_path = "${path.cwd}/kubeconfig_${module.foo-cluster.cluster_id}"
} Throws:
However, this works fine: provider "kubernetes" {
config_path = "${path.cwd}/kubeconfig_${local.eks_cluster_name}"
} |
I don't think the issue is with this module itself but rather the provider or terraform. This issue seems relevant: hashicorp/terraform-provider-kubernetes#142 |
Closing after no update in a long time. Feel free to reopen 🙂 |
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. |
I have issues
using the
cluster_id
output in other modules/actionsI'm submitting a...
What is the current behavior?
Consider this
test.sh
bash script:And these Terraform definitions:
This results in this error:
However, if I reference the local variable, it works fine:
The script works fine; I've validated its output and it returns the expected string
{"kubeconfig":"foo-cluster"}
in both scenarios, but for some reason Terraform throws an error when usingmodule.foo-cluster.cluster_id
.What's failing here?
Environment details
Mac OS 10.13
Terraform and module versions:
The text was updated successfully, but these errors were encountered: