Open kmataru opened 11 months ago
I think the scope of this issue is more then just with import, - it's with unnecessary "known after apply" status of the result
output of azurecaf_name
resource. Even when all inputs are known upfront, for some reason it can't assemble the name until apply.
Is your feature request related to a problem? Please describe. Working with
terraform-azurerm-caf
and having to import lots of cloud resources it leavesazurecaf_name
(even withpassthrough = true
) as a dependency to the actual resources.Leaving the last ones in recreate state, even if the name is exactly the same.
Describe the solution you'd like Probably it would defeat the whole purpose to have the ability to run the import command (somehow). But I am raising this at a discussion level.
(Maybe this would be a topic for
terraform-azurerm-caf
project;and instead of) Update: I was rethinking this andresource "azurecaf_name"
there should bedata "azurecaf_name"
data "azurecaf_name"
makes sense only whenpassthrough = true
😊Describe alternatives you've considered As silly as it seemed, I tried running the import command:
Error: resource azurecaf_name doesn't support import