Error in OSX
Closed this issue · 1 comments
changux commented
Hi,
I am following your instructions and I have this error:
➜ aws-ec2-pricing-master ./aws-pricing-query.py -h
Traceback (most recent call last):
File "./aws-pricing-query.py", line 15, in <module>
pricing = boto3.client('pricing')
File "/usr/local/lib/python3.7/site-packages/boto3/__init__.py", line 79, in client
return _get_default_session().client(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/boto3/session.py", line 199, in client
aws_session_token=aws_session_token, config=config)
File "/usr/local/lib/python3.7/site-packages/botocore/session.py", line 761, in create_client
client_config=config, api_version=api_version)
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 55, in create_client
service_model = self._load_service_model(service_name, api_version)
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 80, in _load_service_model
api_version=api_version)
File "/usr/local/lib/python3.7/site-packages/botocore/loaders.py", line 119, in _wrapper
data = func(self, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/botocore/loaders.py", line 338, in load_service_model
type_name='str')
botocore.exceptions.ValidationError: Invalid value ('pricing') for param service_name of type str
Any idea?
mutineer612 commented
You should used the aws-ec2.pricing.py to parse the spreadsheet and use help menu. The aws-pricing-query.py file and the aws-pricing-attributes.py files are additional files that require manual edits and help you understand how the api works.