{"action":"created","issue":{"url":"https://api.github.com/repos/zalando-stups/senza/issues/281","repository_url":"https://api.github.com/repos/zalando-stups/senza","labels_url":"https://api.github.com/repos/zalando-stups/senza/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/zalando-stups/senza/issues/281/comments","events_url":"https://api.github.com/repos/zalando-stups/senza/issues/281/events","html_url":"https://github.com/zalando-stups/senza/issues/281","id":167648040,"number":281,"title":"NoRegionError: You must specify a region.","user":{"login":"rafaelcaricio","id":107613,"avatar_url":"https://avatars.githubusercontent.com/u/107613?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelcaricio","html_url":"https://github.com/rafaelcaricio","followers_url":"https://api.github.com/users/rafaelcaricio/followers","following_url":"https://api.github.com/users/rafaelcaricio/following{/other_user}","gists_url":"https://api.github.com/users/rafaelcaricio/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelcaricio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelcaricio/subscriptions","organizations_url":"https://api.github.com/users/rafaelcaricio/orgs","repos_url":"https://api.github.com/users/rafaelcaricio/repos","events_url":"https://api.github.com/users/rafaelcaricio/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelcaricio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zalando-stups/senza/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-26T16:09:18Z","updated_at":"2016-07-26T20:40:16Z","closed_at":null,"body":"When trying to run `senza create` I am getting this error:\r\n\r\n```\r\n$ senza create --region eu-central-1 --force ../hello-flask/hello.yaml v56 ImageVersion=bus56 --stacktrace-visible\r\nGenerating Cloud Formation template.. EXCEPTION OCCURRED: You must specify a region.\r\nTraceback (most recent call last):\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/bin/senza\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/cli.py\", line 1492, in main\r\n    HandleExceptions(cli)()\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/error_handling.py\", line 99, in __call__\r\n    self.die_unknown_error(e)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/error_handling.py\", line 57, in die_unknown_error\r\n    raise e\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/error_handling.py\", line 69, in __call__\r\n    self.function(*args, **kwargs)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/click/core.py\", line 1060, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/cli.py\", line 555, in create\r\n    data = create_cf_template(definition, region, version, parameter, force, parameter_file)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/cli.py\", line 638, in create_cf_template\r\n    data = evaluate(definition.copy(), args, account_info, force)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/cli.py\", line 239, in evaluate\r\n    definition = componentfn(definition, configuration, args, info, force, account_info)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/components/weighted_dns_elastic_load_balancer.py\", line 29, in component_weighted_dns_elastic_load_balancer\r\n    return component_elastic_load_balancer(definition, configuration, args, info, force, account_info)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/components/elastic_load_balancer.py\", line 110, in component_elastic_load_balancer\r\n    listeners = configuration.get('Listeners') or get_listeners(subdomain, main_zone, configuration)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/components/elastic_load_balancer.py\", line 48, in get_listeners\r\n    reverse=True)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/senza/manaus/acm.py\", line 169, in get_certificates\r\n    client = boto3.client('acm')\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/boto3/__init__.py\", line 79, in client\r\n    return _get_default_session().client(*args, **kwargs)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/boto3/session.py\", line 250, in client\r\n    aws_session_token=aws_session_token, config=config)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/session.py\", line 818, in create_client\r\n    client_config=config, api_version=api_version)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/client.py\", line 69, in create_client\r\n    verify, credentials, scoped_config, client_config, endpoint_bridge)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/client.py\", line 199, in _get_client_args\r\n    service_name, region_name, endpoint_url, is_secure)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/client.py\", line 322, in resolve\r\n    service_name, region_name)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/regions.py\", line 122, in construct_endpoint\r\n    partition, service_name, region_name)\r\n  File \"/Users/rcaricio/.virtualenvs/lizzy-init/lib/python3.5/site-packages/botocore/regions.py\", line 135, in _endpoint_for_partition\r\n    raise NoRegionError()\r\nbotocore.exceptions.NoRegionError: You must specify a region.\r\n```\r\n\r\nSenza version `1.0.91`\r\n\r\nDoes not happen with older versions of Senza though.\r\n"},"comment":{"url":"https://api.github.com/repos/zalando-stups/senza/issues/comments/235398172","html_url":"https://github.com/zalando-stups/senza/issues/281#issuecomment-235398172","issue_url":"https://api.github.com/repos/zalando-stups/senza/issues/281","id":235398172,"user":{"login":"hjacobs","id":510328,"avatar_url":"https://avatars.githubusercontent.com/u/510328?v=3","gravatar_id":"","url":"https://api.github.com/users/hjacobs","html_url":"https://github.com/hjacobs","followers_url":"https://api.github.com/users/hjacobs/followers","following_url":"https://api.github.com/users/hjacobs/following{/other_user}","gists_url":"https://api.github.com/users/hjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/hjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjacobs/subscriptions","organizations_url":"https://api.github.com/users/hjacobs/orgs","repos_url":"https://api.github.com/users/hjacobs/repos","events_url":"https://api.github.com/users/hjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/hjacobs/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T20:40:16Z","updated_at":"2016-07-26T20:40:16Z","body":"@rafaelcaricio @jmcs it's a bug, the \"region\" needs to be passed through and the boto3 client for ACM needs to get the keyword arg (otherwise it falls back to global AWS config)."}}
{"actor":{"display_login":"hjacobs"}}