Aws-cli: Problèmes avec aws cli.....

Créé le 2 nov. 2017  ·  3Commentaires  ·  Source: aws/aws-cli

J'ai un problème avec aws cli.

~/.aws/config :
[défaut]
région=us-west-2
sortie=json

~/aws/informations d'identification :
[défaut]
aws_access_key_id = AKIAJJUY63AE4XXXXXXX
aws_secret_access_key= ULLhYEWIjYownAbzvd9bMXXXXgzlEs

$ aws
Traceback (dernier appel le plus récent) :
Fichier "/usr/local/bin/aws", ligne 27, dans
sys.exit(main())
Fichier "/usr/local/bin/aws", ligne 23, dans main
retourner awscli.clidriver.main()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 56, dans main
renvoie pilote.main()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 189, dans main
command_table = self._get_command_table()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 98, dans _get_command_table
self._command_table = self._build_command_table()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 118, dans _build_command_table
objet_commande=soi)
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py", ligne 719, en émission
return self._events.emit(event_name, kwargs)Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/hooks.py", ligne 227, en émissionreturn self._emit(event_name, kwargs)Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/hooks.py", ligne 210, dans _emitréponse = gestionnaire ( kwargs)
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/customizations/preview.py", ligne 69, dans mark_as_preview
service_name=original_command.service_model.service_name,
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 308, dans service_model
retourner soi._get_service_model()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py", ligne 325, dans _get_service_model
api_version = self.session.get_config_variable('api_versions').get(
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py", ligne 279, dans get_config_variable
elif self._found_in_config_file(methods, var_config):
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py", ligne 306, dans _found_in_config_file
renvoie var_config[0] dans self.get_scoped_config()
Fichier "/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py", ligne 383, dans get_scoped_config
lever ProfileNotFound(profile=nom_profil)
botocore.exceptions.ProfileNotFound : le profil de configuration () est introuvable

J'ai essayé d'ajouter un profil vide dans la configuration :
[profil]
région=us-west-2
sortie=json

Mais cela n'a pas aidé à résoudre le problème. Même la commande comme aws --version émet la même sortie que ci-dessus.

Commentaire le plus utile

Capable de déboguer le problème et de trouver une solution. Pour mon cas particulier, certains expliquent comment une variable d'environnement "AWS_PROFILE" a été ajoutée accidentellement/automatiquement. Après avoir désactivé cette variable, j'ai pu exécuter la commande aws.

Tous les 3 commentaires

Capable de déboguer le problème et de trouver une solution. Pour mon cas particulier, certains expliquent comment une variable d'environnement "AWS_PROFILE" a été ajoutée accidentellement/automatiquement. Après avoir désactivé cette variable, j'ai pu exécuter la commande aws.

vous voudrez peut-être supprimer les informations d'identification de ce message

C'était aussi mon problème.

Cette page vous a été utile?
0 / 5 - 0 notes