Open psarka opened 2 years ago
I have noticed the same issue.
It is ok when using Terraform v1.0.11
but fails with Terraform v1.1.0
Interesting, seems like a change in Terraform v1.1.0. We might have to use a data source in both cases or construct an object with an overlapping subset of the fields.
Terraform 1.1.1 was released yesterday which fixed this issue.
TL;DR
Terraform chokes with
Error: Inconsistent conditional result types
when trying to computegcp_service_account
output inworkload-identity/output.tf
.Expected behavior
No response
Observed behavior
The full error message is:
Terraform Configuration
Additional information
It did work initially, when I created the cluster, and I'm not sure what happened since then. I'm pretty sure I did not upgrade anything.
When I got this bug, I did reinit terraform, with no positive effect. My current workaround is to manually edit the
.terraform/modules/kubernetes-engine_workload-identity/modules//workload-identity/output.tf
file and replace line 44 byvalue = google_service_account.cluster_service_account[0]
.