Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region not specified error #2

Closed
regevbr opened this issue Jan 24, 2021 · 7 comments
Closed

region not specified error #2

regevbr opened this issue Jan 24, 2021 · 7 comments

Comments

@regevbr
Copy link

regevbr commented Jan 24, 2021

When trying to run the tool, I get an exception:

> ./ec2-spot-converter --generate-dynamodb-table
Traceback (most recent call last):
  File "./ec2-spot-converter", line 58, in <module>
    ec2_client               = boto3.client("ec2",               config=config)
  File "/usr/lib/python3.6/site-packages/boto3/__init__.py", line 93, in client
    return _get_default_session().client(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/boto3/session.py", line 263, in client
    aws_session_token=aws_session_token, config=config)
  File "/usr/lib/python3.6/site-packages/botocore/session.py", line 838, in create_client
    client_config=config, api_version=api_version)
  File "/usr/lib/python3.6/site-packages/botocore/client.py", line 87, in create_client
    verify, credentials, scoped_config, client_config, endpoint_bridge)
  File "/usr/lib/python3.6/site-packages/botocore/client.py", line 328, in _get_client_args
    verify, credentials, scoped_config, client_config, endpoint_bridge)
  File "/usr/lib/python3.6/site-packages/botocore/args.py", line 73, in get_client_args
    endpoint_url, is_secure, scoped_config)
  File "/usr/lib/python3.6/site-packages/botocore/args.py", line 154, in compute_client_args
    s3_config=s3_config,
  File "/usr/lib/python3.6/site-packages/botocore/args.py", line 220, in _compute_endpoint_config
    return self._resolve_endpoint(**resolve_endpoint_kwargs)
  File "/usr/lib/python3.6/site-packages/botocore/args.py", line 303, in _resolve_endpoint
    service_name, region_name, endpoint_url, is_secure)
  File "/usr/lib/python3.6/site-packages/botocore/client.py", line 402, in resolve
    service_name, region_name)
  File "/usr/lib/python3.6/site-packages/botocore/regions.py", line 134, in construct_endpoint
    partition, service_name, region_name)
  File "/usr/lib/python3.6/site-packages/botocore/regions.py", line 148, in _endpoint_for_partition
    raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.

Need to add to readme an explanation on how to configure it (you can see the options here)

@regevbr
Copy link
Author

regevbr commented Jan 24, 2021

Oh, and awesome tool saved my ass thanks @jcjorel :-)

@regevbr
Copy link
Author

regevbr commented Jan 24, 2021

Also worth mentioning the in the diff view, the volume id of the root volume is changed as well.
I will create a PR soon to address both issues soon

@jcjorel
Copy link
Owner

jcjorel commented Jan 24, 2021

Hi,
Thanks for your interest in this tool.
FYI, I release v0.8.2 that contains a minor fix to display guidance toward users about AWS region setting. This is a common behavior of all boto3 based SW but, indeed, it can help people that are not used with this AWS ecosystem.

@jcjorel jcjorel closed this as completed Jan 24, 2021
@regevbr
Copy link
Author

regevbr commented Jan 24, 2021

cool thanks @jcjorel

@regevbr
Copy link
Author

regevbr commented Jan 24, 2021

@jcjorel Also worth mentioning the in the diff view, the volume id of the root volume is changed as well (got me worried for a second when I saw it)

@jcjorel
Copy link
Owner

jcjorel commented Jan 24, 2021

@regevbr Just updated the README.md. See update there: e67c640

@regevbr
Copy link
Author

regevbr commented Jan 24, 2021

@jcjorel perfect thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants