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


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\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


OK, found it:

auto_auth {
method “…” {

config = {

header_value = “myheaderval”