aws configure delete access key profile

让人想犯罪 __ 提交于 2019-12-07 15:46:35

问题


I seem to be having difficulty deleting the access key profile i created for a test user using

aws configure --profile testuser

I have tried deleting the entries in my ~/.awsdirectory however when i run aws configure, i am getting the following error.

botocore.exceptions.ProfileNotFound: The config profile (testuser) could not be found

A workaround is adding [profile testuser] in my ~/.aws/config file but i dont want to do that. I want to remove all traces of this testuser profile from my machine.


回答1:


The Configuring the AWS Command Line Interface documentation page lists various places where configuration files are stored, such as:

  • Linux: ~/.aws/credentials
  • Windows: C:\Users\USERNAME \.aws\credentials

There is also a default profile, which sounds like something that might be causing your situation:

  • Linux: export AWS_DEFAULT_PROFILE=user2
  • Windows: set AWS_DEFAULT_PROFILE=user2

I suggest checking to see whether that environment variable has been set.



来源:https://stackoverflow.com/questions/40098377/aws-configure-delete-access-key-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!