Closed nikola197 closed 7 months ago
Hi Nikola,
Thanks for the catch and for posting this issue :)
I was able to recreate the error in one of my GCP workloads. The root cause is using strings with dots as keys for multiple resources (in a for_each statement). This happens often in GCP when initializing Google Cloud APIs, I'm guessing you do something like this (as I do):
resource "google_project_service" "api" {
for_each = toset([
"apikeys.googleapis.com",
"certificatemanager.googleapis.com",
])
service = each.key
}
This approach creates resources such as this:
module.spoke.google_project_service.api["apikeys.googleapis.com"]
module.spoke.google_project_service.api["certificatemanager.googleapis.com"]
I'll try and fix the parsing error this weekend, I'll update here when it's ready.
@nikola197 Please test the new version, should fix the issue (v0.10.1).
It is published on Pypi; Homebrew formulae will follow shortly.
Hi @idoavrah Thank you for being so responsive and for a really quick fix.
Now it is working for GCP as well.
Thank you a lot and keep up with the good work!
Hello, I tried using tftui with my Terraform code that uses multiple providers and modules, but I get this error
IndexError: list index out of range
every time I try running it.Providers:
When I try running tftui on simple/low resources count repositories, cli works like a charm.
Here is the log I got: tftui_error_log.txt
Can you help me with the error, I will be glad to provide any additional info you may need.
Thank you!