How to run Terraform within context of Vault Agent?

I’ve created a Vault Agent to set several environment variables with secrets from Vault to configure the s3 backend for my Terraform project. If I set an exec command to run something like terraform init, it works as expected, but to run the next command, I have to change the exec which can’t be the right way to do things. If I try to just run terraform plan, it says s3 isn’t configured because it seems to only be configured within the context of the Vault Agent. I seem to be missing a critical piece of info to tie all this together. I basically want to be able to just run “terraform init”, “terraform plan”, “terraform apply”, etc., but have those commands using ENV variables that were set from Vault Agent. Thank you for any insight!