I have a usecase where i have to use aws as authentication method for vault using terraform and obtain a token to get secrets.
Currently I have to first login to the vault by providing aws method and role outside the terraform and then use the token in terraform provider.This is very inconvenient as i have to run commands outside of terraform.
Is there any way I can do the whole process in the terraform itself and get the token without having to do it externally first?