poile
12/19/2025, 7:49 PMAWS_WEB_IDENTITY_TOKEN_FILE + AWS_ROLE_ARN, but BAML only reads explicit credentials (AWS_ACCESS_KEY_ID, etc.). This is the AWS equivalent of the Vertex WIF issue ([#2560](https://github.com/BoundaryML/baml/issues/2560)). I've got a workaround using the AWS SDK to exchange the token for temp credentials and pass them to ClientRegistry, but native support would be cleaner. The Rust aws-config crate already has WebIdentityTokenCredentialsProvider in its default chain, so it might be straightforward to add.
Worth opening an issue for this? Happy to provide more details or help contribute a fix.Vaibhav (BAML 🐑)
12/19/2025, 7:58 PMbaml-sam
12/19/2025, 7:58 PMbaml-sam
12/19/2025, 8:03 PMaws_profile or aws_access_key_id ) from within their .baml files in addition to clientregistry and via env varsbaml-sam
12/19/2025, 8:04 PMbaml-sam
12/19/2025, 8:04 PMpoile
12/19/2025, 8:05 PMbaml-sam
12/19/2025, 8:37 PMbaml-sam
12/19/2025, 8:38 PMbaml-sam
12/19/2025, 8:39 PMbaml-sam
12/19/2025, 8:39 PMbaml-sam
12/19/2025, 8:40 PMpoile
12/20/2025, 3:13 AMDefaultCredentialsChain builder just needed the region passed to it before build() so the STS AssumeRoleWithWebIdentity call knows which endpoint to hit.
I used the Dockerfile approach you suggested to build the patched FFI and deployed it to an EKS cluster with the exact IRSA role that was failing. All tests passed.
Let me know if you have any questions or want changes to the PR!baml-sam
12/23/2025, 12:04 AMpoile
12/23/2025, 7:07 PM