I can’t use /.fly/oidc_token
from a container.
[info]Error: operation error KMS: GetPublicKey, get identity: get credentials: failed to refresh cached credentials, failed to retrieve jwt from provide source, unable to read file at /.fly/oidc_token: open /.fly/oidc_token: no such file or directory
On fly.toml
, I defined:
[env]
AWS_ROLE_ARN = 'arn:aws:iam::__REDACTED__:role/my-role'
When connected to the main containers via fly ssh console
, I can see other AWS_
variables that were defined by fly stack (I assume).
# env | grep AWS_
AWS_ROLE_ARN=arn:aws:iam::__REDACTED__:role/my-role
AWS_ROLE_SESSION_NAME=fly-containers-test@6e822357a75d08
AWS_WEB_IDENTITY_TOKEN_FILE=/.fly/oidc_token
# ls -lhga /.fly/oidc_token
ls: cannot access '/.fly/oidc_token': No such file or directory
Should I do anything special here ?