-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
File "/home/rsyring/projects/env-config-pkg/src/env_config/cli.py", line 142, in env_config_aws
sess_creds = aws.op_sess_creds(config.op_ref_base, config.mfa_serial)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rsyring/projects/env-config-pkg/src/env_config/aws.py", line 144, in op_sess_creds
sess_auth = sts_session(perm_auth)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/rsyring/projects/env-config-pkg/src/env_config/aws.py", line 106, in sts_session
response = sts_client.get_session_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rsyring/.local/pipx/venvs/env-config-cli/lib/python3.11/site-packages/botocore/client.py", line 569, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rsyring/.local/pipx/venvs/env-config-cli/lib/python3.11/site-packages/botocore/client.py", line 1023, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetSessionToken operation: MultiFactorAuthentication failed with invalid MFA one time pass code. When this happens I usually try again for 10-15 seconds until it succeeds. Can env-config do the same thing?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels