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

Postgres Template is broken #44

Closed
feikesteenbergen opened this issue Jan 28, 2016 · 0 comments
Closed

Postgres Template is broken #44

feikesteenbergen opened this issue Jan 28, 2016 · 0 comments

Comments

@feikesteenbergen
Copy link
Contributor

Do you want a replica ELB? [y/N]: N
Traceback (most recent call last):
  File "/usr/local/bin/senza", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/site-packages/senza/cli.py", line 1383, in main
    handle_exceptions(cli)()
  File "/usr/local/lib/python3.5/site-packages/senza/cli.py", line 250, in wrapper
    func()
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/senza/cli.py", line 808, in init
    variables = module.gather_user_variables(variables, region, account_info)
  File "/usr/local/lib/python3.5/site-packages/senza/templates/postgresapp.py", line 396, in gather_user_variables
    default=get_vpc_attribute(account_info.VpcID, 'cidr_block'))
  File "/usr/local/lib/python3.5/site-packages/senza/aws.py", line 35, in get_vpc_attribute
    ec2 = boto3.resource('ec2')
  File "/usr/local/lib/python3.5/site-packages/boto3/__init__.py", line 87, in resource
    return _get_default_session().resource(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/boto3/session.py", line 292, in resource
    aws_session_token=aws_session_token, config=config)
  File "/usr/local/lib/python3.5/site-packages/boto3/session.py", line 200, in client
    aws_session_token=aws_session_token, config=config)
  File "/usr/local/lib/python3.5/site-packages/botocore/session.py", line 796, in create_client
    client_config=config, api_version=api_version)
  File "/usr/local/lib/python3.5/site-packages/botocore/client.py", line 62, in create_client
    verify, credentials, scoped_config, client_config)
  File "/usr/local/lib/python3.5/site-packages/botocore/client.py", line 227, in _get_client_args
    endpoint_url)
  File "/usr/local/lib/python3.5/site-packages/botocore/client.py", line 117, in _get_signature_version_and_region
    service_model.endpoint_prefix, region_name, scheme=scheme)
  File "/usr/local/lib/python3.5/site-packages/botocore/regions.py", line 70, in construct_endpoint
    raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.
feikesteenbergen added a commit to feikesteenbergen/senza that referenced this issue Jan 29, 2016
Some features of the Postgresapp (Spilo) template implicitly relied upon region being set in the account_info.
It should in fact have relied upon the region explicitly specified.

Fixes zalando/spilo#44
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

1 participant