boto で遊んでいて、FPS を使用してアカウントの残高を取得しようとしています。AWS アクセス キーとシークレットをエクスポートしました。
$ env | grep AWS
AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxx
AWS_ACCESS_KEY_ID=xxxxxxxxxxxx
EC2 に接続してすべてのインスタンスを取得しようとすると、コードは正常に動作します。しかし、Python のインタラクティブ モードを使用して FPS を使用しようとすると、次のエラーが発生します。
>>> import boto
>>> fc=boto.connect_fps('fps.amazonaws.com')
>>> fc.get_account_balance()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/boto/fps/connection.py", line 95, in wrapper
return func(self, action, response, *args, **kw)
File "/Library/Python/2.7/site-packages/boto/fps/connection.py", line 183, in get_account_balance
return self.get_object(action, {}, response)
File "/Library/Python/2.7/site-packages/boto/connection.py", line 1204, in get_object
raise self.ResponseError(response.status, response.reason, body)
boto.fps.exception.InvalidClientTokenId: FPS Response Error: 403 InvalidClientTokenId
The AWS Access Key Id you provided does not exist in our records.
The AWS Access Key Id you provided does not exist in our records.
私は何を間違っていますか?使用すべき別の AWS アクセス キーはありますか? 私の AWS アクセス キーには管理者権限があり、請求のために IAM を有効にしました。私は何を間違っていますか?