In order to create short lived credentials to use interact with AWS APIs using aws-vault, since most of IDEs like vscode, intellj still doesn't support the integration, you can add this bash function into ~/.bashrc
.
function aws_vault_save(){
local profile_name="$1"
local region="${2:-eu-west-1}"
local temp_profile="${profile_name}_tmp"
creds=$(aws-vault exec -j "${profile_name}")