The devbox cache credentials subcommand prints out short-lived AWS STS credentials that grant access to the user's Nix cache.
The output follows the format described in aws help config-vars under Sourcing Credentials From External Processes. This allows the AWS CLI/SDKs to obtain credentials from Devbox. For example:
The
devbox cache credentials
subcommand prints out short-lived AWS STS credentials that grant access to the user's Nix cache.The output follows the format described in
aws help config-vars
underSourcing Credentials From External Processes
. This allows the AWS CLI/SDKs to obtain credentials from Devbox. For example:Because Nix uses the AWS SDK's default credential chain, this allows it to automatically authenticate with private Devbox caches.
Note: this can be improved by using the newer credentials-only API endpoint, which is faster.