Aws-cli: awscli....の問題

作成日 2017年11月02日  ·  3コメント  ·  ソース: aws/aws-cli

awscliに問題があります。

〜/ .aws / config:
[ディフォルト]
region = us-west-2
output = json

〜/ aws / credentials:
[ディフォルト]
aws_access_key_id = AKIAJJUY63AE4XXXXXXX
aws_secret_access_key = ULLhYEWIjYownAbzvd9bMXXXXgzlEs

$ aws
トレースバック(最後の最後の呼び出し):
ファイル"/usr / local / bin / aws"、27行目、
sys.exit(main())
ファイル"/usr / local / bin / aws"、23行目、メイン
awscli.clidriver.main()を返します
ファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行56、メイン
driver.main()を返します
ファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行189、メイン
command_table = self._get_command_table()
_get_command_tableのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行98
self._command_table = self._build_command_table()
_build_command_tableのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行118
command_object = self)
ファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py"、行719、emit
self._events.emit(event_name、 kwargs)を返しますファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/hooks.py"、227行目、emitself._emit(event_name、kwargs)を返します_emitのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/hooks.py"、行210応答=ハンドラー( kwargs)
ファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/customizations/preview.py"、69行目、mark_as_preview
service_name = original_command.service_model.service_name、
service_modelのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行308
self._get_service_model()を返します
_get_service_modelのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/awscli/clidriver.py"、行325
api_version = self.session.get_config_variable('api_versions')。get(
get_config_variableのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py"、行279
elif self._found_in_config_file(methods、var_config):
_found_in_config_fileのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py"、行306
self.get_scoped_config()でvar_config[0]を返します
get_scoped_configのファイル"/usr/local/Cellar/awscli/1.11.170/libexec/lib/python2.7/site-packages/botocore/session.py"、行383
ProfileNotFound(profile = profile_name)を発生させます
botocore.exceptions.ProfileNotFound:構成プロファイル()が見つかりませんでした

configに空のプロファイルを追加しようとしました:
[プロフィール]
region = us-west-2
output = json

しかし、それは問題の解決に役立ちませんでした。 aws --versionのようなコマンドでも、上記と同じ出力を出力します。

最も参考になるコメント

問題をデバッグして解決策を見つけることができます。 私の特定のケースでは、環境変数「AWS_PROFILE」が誤って/自動的に追加された方法があります。 その変数の設定を解除した後、awsコマンドを実行することができました。

全てのコメント3件

問題をデバッグして解決策を見つけることができます。 私の特定のケースでは、環境変数「AWS_PROFILE」が誤って/自動的に追加された方法があります。 その変数の設定を解除した後、awsコマンドを実行することができました。

この投稿から資格情報を削除することをお勧めします

これも私の問題でした。

このページは役に立ちましたか?
0 / 5 - 0 評価