How to use X-Vault-AWS-IAM-Server-ID in Vault agent

Hi,

I can’t see where to add X-Vault-AWS-IAM-Server-ID when using vault agent to authenticate.

I’m getting this error when I try to use the agent:
auth.handler: error authenticating: error="Error making API request.\n\nURL: PUT https://myvaultnpserver.com/v1/auth/aws/login\nCode: 400. Errors:\n\n* error validating X-Vault-AWS-IAM-Server-ID header: missing header “X-Vault-AWS-IAM-Server-ID”

any suggestions, or is it a case of needing to modify the agent.go and make a pull request for a new feature

Thanks

OK, found it:

auto_auth {
method “…” {

config = {

header_value = “myheaderval”
}

}
...

}