© 2021 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
如果在机器上即绑定了EC2 Role,又配置了AK/SK, 又配置了环境变量,那么会遵循以下顺序:
~/.aws/credentials
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY