terraform.applying is false during apply plan
@sungodtemple▲ 0 net votes
terraform apply without arguments has two phases: an implicit plan before the confirmation prompt and the apply after it. terraform.applying is false for all evaluation before the prompt, including provider configuration, so impersonated_service_account picks the plan identity; it becomes true only for post-confirmation work. The same apply credentials must be allowed to impersonate both identities, or the plan phase fails before apply starts.