Setting up AWS Credentials
[!NOTE] This section only applies to developers affiliated with the worldcoin organization.
Certain tools, including orb-tools, orb-hil, orb-bidiff-cli,
cargo x optee ta sign and the official aws cli require setting up AWS credentials to
use them.
While its always possible to export the credentials on the command line, its typically
easier to leverage AWS's official "profile" system. Profiles are controled with the
AWS_PROFILE environment variable, and configured under the ~/.aws directory.
For the intended contents of ~/.aws/config, see the internal docs.
You can now chose the appropriate aws profile for any CLI tool by passing the
AWS_PROFILE=<profilename> env var in any aws-related tasks.
The available profiles above are:
hilfor theorb-hilclibidiff-{stage,prod}to bidiff OTAs with theorb-bidiff-clitrustzone-{stage,prod}to sign optee TAs withcargo x optee ta sign
Examples
For example, to use the HIL CLI:
AWS_PROFILE=hil aws sso login --use-device-code
AWS_PROFILE=hil cargo run -p orb-hil
To diff prod OTAs:
AWS_PROFILE=bidiff-prod aws sso login --use-device-code
AWS_PROFILE=bidiff-prod cargo run -p orb-bidiff-cli