{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/3673","repository_url":"https://api.github.com/repos/aws/aws-cli","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/3673/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/3673/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/3673/events","html_url":"https://github.com/aws/aws-cli/issues/3673","id":373018018,"node_id":"MDU6SXNzdWUzNzMwMTgwMTg=","number":3673,"title":"elbv2 describe-listeners fails with ValidationError","user":{"login":"krzyho","id":1598131,"node_id":"MDQ6VXNlcjE1OTgxMzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1598131?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyho","html_url":"https://github.com/krzyho","followers_url":"https://api.github.com/users/krzyho/followers","following_url":"https://api.github.com/users/krzyho/following{/other_user}","gists_url":"https://api.github.com/users/krzyho/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyho/subscriptions","organizations_url":"https://api.github.com/users/krzyho/orgs","repos_url":"https://api.github.com/users/krzyho/repos","events_url":"https://api.github.com/users/krzyho/events{/privacy}","received_events_url":"https://api.github.com/users/krzyho/received_events","type":"User","site_admin":false},"labels":[{"id":1114361215,"node_id":"MDU6TGFiZWwxMTE0MzYxMjE1","url":"https://api.github.com/repos/aws/aws-cli/labels/guidance","name":"guidance","color":"8a19e7","default":false},{"id":1114361972,"node_id":"MDU6TGFiZWwxMTE0MzYxOTcy","url":"https://api.github.com/repos/aws/aws-cli/labels/response-requested","name":"response-requested","color":"666666","default":false}],"state":"open","locked":false,"assignee":{"login":"justnance","id":40074499,"node_id":"MDQ6VXNlcjQwMDc0NDk5","avatar_url":"https://avatars2.githubusercontent.com/u/40074499?v=4","gravatar_id":"","url":"https://api.github.com/users/justnance","html_url":"https://github.com/justnance","followers_url":"https://api.github.com/users/justnance/followers","following_url":"https://api.github.com/users/justnance/following{/other_user}","gists_url":"https://api.github.com/users/justnance/gists{/gist_id}","starred_url":"https://api.github.com/users/justnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justnance/subscriptions","organizations_url":"https://api.github.com/users/justnance/orgs","repos_url":"https://api.github.com/users/justnance/repos","events_url":"https://api.github.com/users/justnance/events{/privacy}","received_events_url":"https://api.github.com/users/justnance/received_events","type":"User","site_admin":false},"assignees":[{"login":"justnance","id":40074499,"node_id":"MDQ6VXNlcjQwMDc0NDk5","avatar_url":"https://avatars2.githubusercontent.com/u/40074499?v=4","gravatar_id":"","url":"https://api.github.com/users/justnance","html_url":"https://github.com/justnance","followers_url":"https://api.github.com/users/justnance/followers","following_url":"https://api.github.com/users/justnance/following{/other_user}","gists_url":"https://api.github.com/users/justnance/gists{/gist_id}","starred_url":"https://api.github.com/users/justnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justnance/subscriptions","organizations_url":"https://api.github.com/users/justnance/orgs","repos_url":"https://api.github.com/users/justnance/repos","events_url":"https://api.github.com/users/justnance/events{/privacy}","received_events_url":"https://api.github.com/users/justnance/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-10-23T14:04:03Z","updated_at":"2018-12-07T08:06:25Z","closed_at":null,"author_association":"NONE","body":"Hi guys! 👋 \r\n\r\nToday I tried listing my ALBs but it turns out that several describe subcommands in the elbv2 command are failing with ValidationErrors.\r\nEven using the example from here \r\nhttps://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-rules.html#examples\r\nresults in an error.\r\n\r\nI'm running `aws-cli/1.16.39 Python/3.6.5 Darwin/17.7.0 botocore/1.12.29`\r\n\r\nDid the ARN pattern change in recent days?\r\nHere's my debug output:\r\n```\r\n$ aws elbv2 describe-rules --rule-arns arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee --debug\r\n2018-10-23 15:49:20,767 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.39 Python/3.6.5 Darwin/17.7.0 botocore/1.12.29\r\n2018-10-23 15:49:20,768 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['elbv2', 'describe-rules', '--rule-arns', 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee', '--debug']\r\n2018-10-23 15:49:20,769 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x10757f378>\r\n2018-10-23 15:49:20,769 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,769 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x106fd8b70>\r\n2018-10-23 15:49:20,769 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,770 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x107010ae8>\r\n2018-10-23 15:49:20,770 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,770 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.\r\n2018-10-23 15:49:20,770 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.\r\n2018-10-23 15:49:20,771 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,771 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.\r\n2018-10-23 15:49:20,771 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,771 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.\r\n2018-10-23 15:49:20,781 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,781 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x1074552f0>\r\n2018-10-23 15:49:20,781 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,781 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,781 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.\r\n2018-10-23 15:49:20,782 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/data/elbv2/2015-12-01/service-2.json\r\n2018-10-23 15:49:20,785 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.elastic-load-balancing-v2: calling handler <function register_retries_for_service at 0x106b83e18>\r\n2018-10-23 15:49:20,786 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: elbv2\r\n2018-10-23 15:49:20,788 - MainThread - botocore.hooks - DEBUG - Changing event name from building-command-table.elbv2 to building-command-table.elastic-load-balancing-v2\r\n2018-10-23 15:49:20,788 - MainThread - botocore.hooks - DEBUG - Event building-command-table.elastic-load-balancing-v2: calling handler <function add_waiters at 0x107583598>\r\n2018-10-23 15:49:20,797 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/data/elbv2/2015-12-01/waiters-2.json\r\n2018-10-23 15:49:20,798 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('listener-arn', <awscli.arguments.CLIArgument object at 0x107781c18>), ('rule-arns', <awscli.arguments.ListArgument object at 0x107781c50>), ('marker', <awscli.arguments.CLIArgument object at 0x107781cc0>), ('page-size', <awscli.arguments.CLIArgument object at 0x107781cf8>)])\r\n2018-10-23 15:49:20,798 - MainThread - botocore.hooks - DEBUG - Changing event name from building-argument-table.elbv2.describe-rules to building-argument-table.elastic-load-balancing-v2.describe-rules\r\n2018-10-23 15:49:20,798 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.elastic-load-balancing-v2.describe-rules: calling handler <function add_streaming_output_arg at 0x10757f620>\r\n2018-10-23 15:49:20,799 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.elastic-load-balancing-v2.describe-rules: calling handler <function add_cli_input_json at 0x10701b048>\r\n2018-10-23 15:49:20,799 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.elastic-load-balancing-v2.describe-rules: calling handler <function unify_paging_params at 0x1075027b8>\r\n2018-10-23 15:49:20,812 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/data/elbv2/2015-12-01/paginators-1.json\r\n2018-10-23 15:49:20,814 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.elastic-load-balancing-v2.describe-rules: calling handler <function add_generate_skeleton at 0x1074e0598>\r\n2018-10-23 15:49:20,815 - MainThread - botocore.hooks - DEBUG - Changing event name from before-building-argument-table-parser.elbv2.describe-rules to before-building-argument-table-parser.elastic-load-balancing-v2.describe-rules\r\n2018-10-23 15:49:20,816 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.elastic-load-balancing-v2.describe-rules: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x107781d30>>\r\n2018-10-23 15:49:20,816 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.elastic-load-balancing-v2.describe-rules: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x107781da0>>\r\n2018-10-23 15:49:20,818 - MainThread - botocore.hooks - DEBUG - Changing event name from operation-args-parsed.elbv2.describe-rules to operation-args-parsed.elastic-load-balancing-v2.describe-rules\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.listener-arn to load-cli-arg.elastic-load-balancing.describe-rules.listener-arn\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.listener-arn: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.rule-arns to load-cli-arg.elastic-load-balancing.describe-rules.rule-arns\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.rule-arns: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Changing event name from process-cli-arg.elbv2.describe-rules to process-cli-arg.elastic-load-balancing-v2.describe-rules\r\n2018-10-23 15:49:20,819 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.elastic-load-balancing-v2.describe-rules: calling handler <awscli.argprocess.ParamShorthandParser object at 0x106fb3fd0>\r\n2018-10-23 15:49:20,820 - MainThread - awscli.arguments - DEBUG - Unpacked value of ['arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee'] for parameter \"rule_arns\": ['arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee']\r\n2018-10-23 15:49:20,820 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.marker to load-cli-arg.elastic-load-balancing.describe-rules.marker\r\n2018-10-23 15:49:20,820 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.marker: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,820 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.page-size to load-cli-arg.elastic-load-balancing.describe-rules.page-size\r\n2018-10-23 15:49:20,820 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,821 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.cli-input-json to load-cli-arg.elastic-load-balancing.describe-rules.cli-input-json\r\n2018-10-23 15:49:20,821 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,821 - MainThread - botocore.hooks - DEBUG - Changing event name from load-cli-arg.elasticloadbalancing.describe-rules.generate-cli-skeleton to load-cli-arg.elastic-load-balancing.describe-rules.generate-cli-skeleton\r\n2018-10-23 15:49:20,821 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.elastic-load-balancing.describe-rules.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105a46048>\r\n2018-10-23 15:49:20,821 - MainThread - botocore.hooks - DEBUG - Changing event name from calling-command.elbv2.describe-rules to calling-command.elastic-load-balancing-v2.describe-rules\r\n2018-10-23 15:49:20,822 - MainThread - botocore.hooks - DEBUG - Event calling-command.elastic-load-balancing-v2.describe-rules: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x107781d30>>\r\n2018-10-23 15:49:20,822 - MainThread - botocore.hooks - DEBUG - Event calling-command.elastic-load-balancing-v2.describe-rules: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x107781da0>>\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'eu-west-1'.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,822 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.\r\n2018-10-23 15:49:20,823 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env\r\n2018-10-23 15:49:20,823 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role\r\n2018-10-23 15:49:20,823 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file\r\n2018-10-23 15:49:20,824 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials\r\n2018-10-23 15:49:20,824 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/data/endpoints.json\r\n2018-10-23 15:49:20,828 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.\r\n2018-10-23 15:49:20,829 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x106b6f400>\r\n2018-10-23 15:49:20,830 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.elastic-load-balancing-v2: calling handler <function add_generate_presigned_url at 0x106af1d90>\r\n2018-10-23 15:49:20,831 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None\r\n2018-10-23 15:49:20,858 - MainThread - botocore.endpoint - DEBUG - Setting elasticloadbalancing timeout as (60, 60)\r\n2018-10-23 15:49:20,859 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: elbv2\r\n2018-10-23 15:49:20,861 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.elastic-load-balancing-v2.DescribeRules: calling handler <function generate_idempotent_uuid at 0x106b837b8>\r\n2018-10-23 15:49:20,862 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeRules) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.16.39 Python/3.6.5 Darwin/17.7.0 botocore/1.12.29'}, 'body': {'Action': 'DescribeRules', 'Version': '2015-12-01', 'RuleArns.member.1': 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee'}, 'url': 'https://elasticloadbalancing.eu-west-1.amazonaws.com/', 'context': {'client_region': 'eu-west-1', 'client_config': <botocore.config.Config object at 0x1076427f0>, 'has_streaming_input': False, 'auth_type': None}}\r\n2018-10-23 15:49:20,862 - MainThread - botocore.hooks - DEBUG - Event request-created.elastic-load-balancing-v2.DescribeRules: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107642860>>\r\n2018-10-23 15:49:20,863 - MainThread - botocore.hooks - DEBUG - Event choose-signer.elastic-load-balancing-v2.DescribeRules: calling handler <function set_operation_specific_signer at 0x106b836a8>\r\n2018-10-23 15:49:20,864 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.\r\n2018-10-23 15:49:20,865 - MainThread - botocore.auth - DEBUG - CanonicalRequest:\r\nPOST\r\n/\r\n\r\ncontent-type:application/x-www-form-urlencoded; charset=utf-8\r\nhost:elasticloadbalancing.eu-west-1.amazonaws.com\r\nx-amz-date:20181023T134920Z\r\n\r\ncontent-type;host;x-amz-date\r\nb9441f463bd8b5aadb26222a31a9871b4f92b785ee7c1f0e4db328812d1be5b0\r\n2018-10-23 15:49:20,865 - MainThread - botocore.auth - DEBUG - StringToSign:\r\nAWS4-HMAC-SHA256\r\n20181023T134920Z\r\n20181023/eu-west-1/elasticloadbalancing/aws4_request\r\n1678165700e2c2aceba6a5aa0bb128dace1a09f756ba27bbaccce0f598af6dc3\r\n2018-10-23 15:49:20,866 - MainThread - botocore.auth - DEBUG - Signature:\r\ne386f02fb68c465cac61ed5dfc28de89f4ddde5cf07c96fd3fa24a1171b78694\r\n2018-10-23 15:49:20,867 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://elasticloadbalancing.eu-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/1.16.39 Python/3.6.5 Darwin/17.7.0 botocore/1.12.29', 'X-Amz-Date': b'20181023T134920Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAI4GJ3H47P2OJMWYA/20181023/eu-west-1/elasticloadbalancing/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=e386f02fb68c465cac61ed5dfc28de89f4ddde5cf07c96fd3fa24a1171b78694', 'Content-Length': '215'}>\r\n2018-10-23 15:49:21,155 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': '718305ed-d6ca-11e8-9590-790265466ad2', 'Content-Type': 'text/xml', 'Content-Length': '435', 'Date': 'Tue, 23 Oct 2018 13:49:21 GMT', 'Connection': 'close'}\r\n2018-10-23 15:49:21,155 - MainThread - botocore.parsers - DEBUG - Response body:\r\nb'<ErrorResponse xmlns=\"http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/\">\\n  <Error>\\n    <Type>Sender</Type>\\n    <Code>ValidationError</Code>\\n    <Message>\\'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee\\' is not a valid listener rule ARN</Message>\\n  </Error>\\n  <RequestId>718305ed-d6ca-11e8-9590-790265466ad2</RequestId>\\n</ErrorResponse>\\n'\r\n2018-10-23 15:49:21,157 - MainThread - botocore.hooks - DEBUG - Event needs-retry.elastic-load-balancing-v2.DescribeRules: calling handler <botocore.retryhandler.RetryHandler object at 0x107655c18>\r\n2018-10-23 15:49:21,157 - MainThread - botocore.retryhandler - DEBUG - No retry needed.\r\n2018-10-23 15:49:21,160 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()\r\nTraceback (most recent call last):\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/awscli/clidriver.py\", line 207, in main\r\n    return command_table[parsed_args.command](remaining, parsed_args)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/awscli/clidriver.py\", line 344, in __call__\r\n    return command_table[parsed_args.operation](remaining, parsed_globals)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/awscli/clidriver.py\", line 516, in __call__\r\n    call_parameters, parsed_globals)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/awscli/clidriver.py\", line 636, in invoke\r\n    client, operation_name, parameters, parsed_globals)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/awscli/clidriver.py\", line 648, in _make_client_call\r\n    **parameters)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/client.py\", line 320, in _api_call\r\n    return self._make_api_call(operation_name, kwargs)\r\n  File \"/Users/krzyho/Library/Python/3.6/lib/python/site-packages/botocore/client.py\", line 623, in _make_api_call\r\n    raise error_class(parsed_response, operation_name)\r\nbotocore.exceptions.ClientError: An error occurred (ValidationError) when calling the DescribeRules operation: 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee' is not a valid listener rule ARN\r\n2018-10-23 15:49:21,163 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255\r\n\r\nAn error occurred (ValidationError) when calling the DescribeRules operation: 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee' is not a valid listener rule ARN\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/445154331","html_url":"https://github.com/aws/aws-cli/issues/3673#issuecomment-445154331","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/3673","id":445154331,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTE1NDMzMQ==","user":{"login":"krzyho","id":1598131,"node_id":"MDQ6VXNlcjE1OTgxMzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1598131?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyho","html_url":"https://github.com/krzyho","followers_url":"https://api.github.com/users/krzyho/followers","following_url":"https://api.github.com/users/krzyho/following{/other_user}","gists_url":"https://api.github.com/users/krzyho/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyho/subscriptions","organizations_url":"https://api.github.com/users/krzyho/orgs","repos_url":"https://api.github.com/users/krzyho/repos","events_url":"https://api.github.com/users/krzyho/events{/privacy}","received_events_url":"https://api.github.com/users/krzyho/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T08:06:25Z","updated_at":"2018-12-07T08:06:25Z","author_association":"NONE","body":"That's it! You're right. Specifying the region solves my issue. Thanks!\r\n\r\nHowever, after further testing I think the error message is quite misleading. It seems to be erroring out with `ValidationError` when I don't have access to ELBs (i.e. using another aws profile) and/or I'm querying in a wrong region (like it was done here). This makes me look at the ARN and scratching my head thinking what did I copy-pasted wrong?\r\n\r\nMaybe it'd be better to return just ListenerNotFound or other permission-wise error? \r\n\r\nWhat do you think?"}}
{"actor":{"display_login":"krzyho"}}