You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to enumerate available Glacier vaults for my account, was following the examples in class Glacier.Account and vaults.all():
import boto3
accountId = '-' # (1) You can either specify an AWS account ID or optionally a single '-' (hyphen)
glacier = boto3.resource('glacier')
account = glacier.Account(accountId)
vault_iterator = account.vaults.all()
print(list(vault_iterator))
/Src/glacier-archive (master)$ ./test.py
Traceback (most recent call last):
File "./test.py", line 19, in <module>
print(list(allvaults))
File "/Src/glacier-archive/run/python/lib/python3.4/site-packages/boto3/resources/collection.py", line 82, in __iter__
for page in self.pages():
File "/Src/glacier-archive/run/python/lib/python3.4/site-packages/boto3/resources/collection.py", line 167, in pages
for item in self._handler(self._parent, params, page):
File "/Src/glacier-archive/run/python/lib/python3.4/site-packages/boto3/resources/response.py", line 240, in __call__
parent, identifiers, response_item))
File "/Src/glacier-archive/run/python/lib/python3.4/site-packages/boto3/resources/response.py", line 288, in handle_response_item
resource = resource_cls(**kwargs)
File "/Src/glacier-archive/run/python/lib/python3.4/site-packages/boto3/resources/base.py", line 119, in __init__
'Required parameter {0} not set'.format(identifier))
ValueError: Required parameter account_id not set
I get this error for both my real accountId as well as '-'. However, if I query the vault directly
Hi
I was trying to enumerate available Glacier vaults for my account, was following the examples in class Glacier.Account and vaults.all():
I get this error for both my real accountId as well as '-'. However, if I query the vault directly
... I'm getting a proper response. Why? What's wrong?
(1): https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vaults-get.html
The text was updated successfully, but these errors were encountered: