When setting add_address_to_env = true, I expected VAULT_ADDR to be set to the provider's address when running the Vault CLI via local-exec provisioners.
Actual Behavior
If I run VAULT_ADDR=https://... terraform apply, Vault CLI executed by local-exec sees the address on the command line rather than the config.
Terraform Core Version
1.8.5
Terraform Vault Provider Version
4.2.0
Vault Server Version
1.10.0
Affected Resource(s)
No response
Expected Behavior
When setting
add_address_to_env = true
, I expectedVAULT_ADDR
to be set to the provider's address when running the Vault CLI vialocal-exec
provisioners.Actual Behavior
If I run
VAULT_ADDR=https://... terraform apply
, Vault CLI executed bylocal-exec
sees the address on the command line rather than the config.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Run
VAULT_ADDR=bad terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None