I have a lambda running in account A and wants to authenticate to Vault severs deployed in account B.
My lambdas in account B can auth with Vault with no problems. Lambdas in account A get this error:
{"errors":["error looking up full ARN of entity \u0026{aws <AccountA> assumed-role LambdaRole.default_role mylambda}: error creating IAM client: unable to fetch client for account ID <AccountA> -- default client is for account <AccountB>"]}
I assume the problem is that I haven't setup cross account authentication for my vault servers in account B to access and auth lambdas from account A. I am using aws iam authentication, NOT ec2.
Questions:
2. The parameters accepted in "auth/aws-ec2/config/sts/<account_id>" are the same as those accepted in /auth/aws/config/client ?
Where do I name the aws role vault should assume in this config?
thanks,
Ernesto