EDIT: I upgraded aws-cli and botocore to current (1.16.137 and 1.12.127, respectively) and got the same error.
I have a Lambda function on version 5, with the alias 1-0-194 pointing to it.
Running
aws lambda list-aliases --function-name [lambda name] --function-version 5
returns
{ "Aliases": [] }
BUT, running
aws lambda list-aliases --function-name [lambda name]
returns
{
"Aliases": [
{
"AliasArn": "arn:aws:lambda:us-west-2:[account]:function:[lambda name]:1-0-194",
"Name": "1-0-194",
"FunctionVersion": "5",
"Description": "",
"RevisionId": "[revision ID]"
}
]
}
Aliases that point to version 5 aren't found when you explicitly specify the version.
It's also worth noting that I think I ran into this bug with the Java SDK (version 1.11.455
) as well, but it was much harder to verify.
Output from running with --debug
:
aws lambda list-aliases --function-name [lambda name] --function-version 5 --debug
2019-04-02 16:42:50,911 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96
2019-04-02 16:42:50,912 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['lambda', 'list-aliases', '--function-name', '[lambda name]', '--function-version', '5', '--debug']
2019-04-02 16:42:50,912 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x1106b8488>
2019-04-02 16:42:50,912 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x1100b2510>
2019-04-02 16:42:50,913 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x1100e4158>
2019-04-02 16:42:50,921 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x11057c048>
2019-04-02 16:42:50,922 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/lambda/2015-03-31/service-2.json
2019-04-02 16:42:50,925 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.lambda: calling handler <function register_retries_for_service at 0x10fc54268>
2019-04-02 16:42:50,925 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: lambda
2019-04-02 16:42:50,927 - MainThread - botocore.hooks - DEBUG - Event building-command-table.lambda: calling handler <function add_waiters at 0x1106b9950>
2019-04-02 16:42:50,938 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('function-name', <awscli.arguments.CLIArgument object at 0x1118c0c50>), ('function-version', <awscli.arguments.CLIArgument object at 0x1118c0c88>), ('marker', <awscli.arguments.CLIArgument object at 0x1118c0d68>), ('max-items', <awscli.arguments.CLIArgument object at 0x1118c0d30>)])
2019-04-02 16:42:50,938 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_streaming_output_arg at 0x1106b8730>
2019-04-02 16:42:50,938 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_cli_input_json at 0x1100e47b8>
2019-04-02 16:42:50,938 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function unify_paging_params at 0x1106368c8>
2019-04-02 16:42:50,949 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/lambda/2015-03-31/paginators-1.json
2019-04-02 16:42:50,949 - MainThread - awscli.customizations.paginate - DEBUG - Modifying paging parameters for operation: ListAliases
2019-04-02 16:42:50,950 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_generate_skeleton at 0x1106146a8>
2019-04-02 16:42:50,950 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.list-aliases: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x1118c0da0>>
2019-04-02 16:42:50,950 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.list-aliases: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x1118d03c8>>
2019-04-02 16:42:50,952 - MainThread - botocore.hooks - DEBUG - Event operation-args-parsed.lambda.list-aliases: calling handler functools.partial(<function check_should_enable_pagination at 0x1106369d8>, ['marker', 'max-items'], {'max-items': <awscli.arguments.CLIArgument object at 0x1118c0d30>}, OrderedDict([('function-name', <awscli.arguments.CLIArgument object at 0x1118c0c50>), ('function-version', <awscli.arguments.CLIArgument object at 0x1118c0c88>), ('marker', <awscli.arguments.CLIArgument object at 0x1118c0d68>), ('max-items', <awscli.customizations.paginate.PageArgument object at 0x1118d02e8>), ('cli-input-json', <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x1118c0da0>), ('starting-token', <awscli.customizations.paginate.PageArgument object at 0x1118c5fd0>), ('page-size', <awscli.customizations.paginate.PageArgument object at 0x1118d0240>), ('generate-cli-skeleton', <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x1118d03c8>)]))
2019-04-02 16:42:50,953 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.function-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,953 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.list-aliases: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1100a2c88>
2019-04-02 16:42:50,953 - MainThread - awscli.arguments - DEBUG - Unpacked value of '[lambda name]' for parameter "function_name": '[lambda name]'
2019-04-02 16:42:50,953 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.function-version: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,953 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.list-aliases: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1100a2c88>
2019-04-02 16:42:50,953 - MainThread - awscli.arguments - DEBUG - Unpacked value of '5' for parameter "function_version": '5'
2019-04-02 16:42:50,953 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.marker: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,954 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.max-items: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,954 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,954 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.starting-token: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,954 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,954 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f0a2f28>
2019-04-02 16:42:50,955 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.list-aliases: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x1118c0da0>>
2019-04-02 16:42:50,955 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.list-aliases: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x1118d03c8>>
2019-04-02 16:42:50,955 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2019-04-02 16:42:50,955 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2019-04-02 16:42:50,955 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2019-04-02 16:42:50,957 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2019-04-02 16:42:50,958 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/endpoints.json
2019-04-02 16:42:50,974 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x10fc357b8>
2019-04-02 16:42:50,975 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x10fbebc80>
2019-04-02 16:42:50,975 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2019-04-02 16:42:50,984 - MainThread - botocore.endpoint - DEBUG - Setting lambda timeout as (60, 60)
2019-04-02 16:42:50,985 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: lambda
2019-04-02 16:42:50,986 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.lambda.ListAliases: calling handler <function generate_idempotent_uuid at 0x10fc4fb70>
2019-04-02 16:42:50,986 - MainThread - botocore.hooks - DEBUG - Event before-call.lambda.ListAliases: calling handler <function inject_api_version_header_if_needed at 0x10fc556a8>
2019-04-02 16:42:50,986 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListAliases) with params: {'url_path': '/2015-03-31/functions/[lambda name]/aliases', 'query_string': {'FunctionVersion': '5'}, 'method': 'GET', 'headers': {'User-Agent': 'aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96'}, 'body': b'', 'url': 'https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/[lambda name]/aliases?FunctionVersion=5', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x1119ebcc0>, 'has_streaming_input': False, 'auth_type': None}}
2019-04-02 16:42:50,987 - MainThread - botocore.hooks - DEBUG - Event request-created.lambda.ListAliases: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x1119ebc50>>
2019-04-02 16:42:50,987 - MainThread - botocore.hooks - DEBUG - Event choose-signer.lambda.ListAliases: calling handler <function set_operation_specific_signer at 0x10fc4fa60>
2019-04-02 16:42:50,987 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-02 16:42:50,987 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
GET
/2015-03-31/functions/[lambda name]/aliases
FunctionVersion=5
host:lambda.us-west-2.amazonaws.com
x-amz-date:20190402T234250Z
host;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2019-04-02 16:42:50,987 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190402T234250Z
20190402/us-west-2/lambda/aws4_request
b3d5580a4656d4f5010e4256e221e20806a2119160ab7dc1605d57af6bc3186a
2019-04-02 16:42:50,987 - MainThread - botocore.auth - DEBUG - Signature:
30c4f1d2515fc0e42154cf079473d6af345746b896a970a5f1c2712552dce62f
2019-04-02 16:42:50,987 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/[lambda name]/aliases?FunctionVersion=5, headers={'User-Agent': b'aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96', 'X-Amz-Date': b'20190402T234250Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAJTCBAORSNCPWH4XA/20190402/us-west-2/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=30c4f1d2515fc0e42154cf079473d6af345746b896a970a5f1c2712552dce62f'}>
2019-04-02 16:42:50,988 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-02 16:42:50,988 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): lambda.us-west-2.amazonaws.com:443
2019-04-02 16:42:51,124 - MainThread - urllib3.connectionpool - DEBUG - https://lambda.us-west-2.amazonaws.com:443 "GET /2015-03-31/functions/[lambda name]/aliases?FunctionVersion=5 HTTP/1.1" 200 32
2019-04-02 16:42:51,125 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Tue, 02 Apr 2019 23:42:51 GMT', 'Content-Type': 'application/json', 'Content-Length': '32', 'Connection': 'keep-alive', 'x-amzn-RequestId': '073af2a6-55a1-11e9-8874-479d47ecf826'}
2019-04-02 16:42:51,125 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Aliases":[],"NextMarker":null}'
2019-04-02 16:42:51,126 - MainThread - botocore.hooks - DEBUG - Event needs-retry.lambda.ListAliases: calling handler <botocore.retryhandler.RetryHandler object at 0x1118b5320>
2019-04-02 16:42:51,126 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
{
"Aliases": []
}
aws lambda list-aliases --function-name [lambda name] --debug
2019-04-02 16:45:19,647 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96
2019-04-02 16:45:19,648 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['lambda', 'list-aliases', '--function-name', '[lambda name]', '--debug']
2019-04-02 16:45:19,648 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x10f632488>
2019-04-02 16:45:19,648 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x10f02c510>
2019-04-02 16:45:19,649 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10f05e158>
2019-04-02 16:45:19,657 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x10f4f6048>
2019-04-02 16:45:19,658 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/lambda/2015-03-31/service-2.json
2019-04-02 16:45:19,661 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.lambda: calling handler <function register_retries_for_service at 0x10ebce268>
2019-04-02 16:45:19,661 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: lambda
2019-04-02 16:45:19,662 - MainThread - botocore.hooks - DEBUG - Event building-command-table.lambda: calling handler <function add_waiters at 0x10f633950>
2019-04-02 16:45:19,673 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('function-name', <awscli.arguments.CLIArgument object at 0x11085ec18>), ('function-version', <awscli.arguments.CLIArgument object at 0x11085ec50>), ('marker', <awscli.arguments.CLIArgument object at 0x11085ed30>), ('max-items', <awscli.arguments.CLIArgument object at 0x11085ecf8>)])
2019-04-02 16:45:19,673 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_streaming_output_arg at 0x10f632730>
2019-04-02 16:45:19,673 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_cli_input_json at 0x10f05e7b8>
2019-04-02 16:45:19,674 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function unify_paging_params at 0x10f5b08c8>
2019-04-02 16:45:19,684 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/lambda/2015-03-31/paginators-1.json
2019-04-02 16:45:19,684 - MainThread - awscli.customizations.paginate - DEBUG - Modifying paging parameters for operation: ListAliases
2019-04-02 16:45:19,685 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.list-aliases: calling handler <function add_generate_skeleton at 0x10f58e6a8>
2019-04-02 16:45:19,685 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.list-aliases: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x11085ed68>>
2019-04-02 16:45:19,685 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.list-aliases: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x11086e390>>
2019-04-02 16:45:19,686 - MainThread - botocore.hooks - DEBUG - Event operation-args-parsed.lambda.list-aliases: calling handler functools.partial(<function check_should_enable_pagination at 0x10f5b09d8>, ['marker', 'max-items'], {'max-items': <awscli.arguments.CLIArgument object at 0x11085ecf8>}, OrderedDict([('function-name', <awscli.arguments.CLIArgument object at 0x11085ec18>), ('function-version', <awscli.arguments.CLIArgument object at 0x11085ec50>), ('marker', <awscli.arguments.CLIArgument object at 0x11085ed30>), ('max-items', <awscli.customizations.paginate.PageArgument object at 0x11086e2b0>), ('cli-input-json', <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x11085ed68>), ('starting-token', <awscli.customizations.paginate.PageArgument object at 0x11085edd8>), ('page-size', <awscli.customizations.paginate.PageArgument object at 0x11086e208>), ('generate-cli-skeleton', <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x11086e390>)]))
2019-04-02 16:45:19,686 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.function-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.list-aliases: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10f01cc88>
2019-04-02 16:45:19,687 - MainThread - awscli.arguments - DEBUG - Unpacked value of '[lambda name]' for parameter "function_name": '[lambda name]'
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.function-version: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.marker: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.max-items: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.starting-token: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,687 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,688 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.list-aliases.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10f70afd0>
2019-04-02 16:45:19,688 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.list-aliases: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x11085ed68>>
2019-04-02 16:45:19,688 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.list-aliases: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x11086e390>>
2019-04-02 16:45:19,688 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2019-04-02 16:45:19,688 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2019-04-02 16:45:19,688 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2019-04-02 16:45:19,690 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2019-04-02 16:45:19,690 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/[user]/Library/Python/3.6/lib/python/site-packages/botocore/data/endpoints.json
2019-04-02 16:45:19,707 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x10ebaf7b8>
2019-04-02 16:45:19,708 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x10eb65c80>
2019-04-02 16:45:19,709 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2019-04-02 16:45:19,719 - MainThread - botocore.endpoint - DEBUG - Setting lambda timeout as (60, 60)
2019-04-02 16:45:19,720 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: lambda
2019-04-02 16:45:19,721 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.lambda.ListAliases: calling handler <function generate_idempotent_uuid at 0x10ebc9b70>
2019-04-02 16:45:19,722 - MainThread - botocore.hooks - DEBUG - Event before-call.lambda.ListAliases: calling handler <function inject_api_version_header_if_needed at 0x10ebcf6a8>
2019-04-02 16:45:19,722 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListAliases) with params: {'url_path': '/2015-03-31/functions/[lambda name]/aliases', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96'}, 'body': b'', 'url': 'https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/[lambda name]/aliases', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x110989c88>, 'has_streaming_input': False, 'auth_type': None}}
2019-04-02 16:45:19,722 - MainThread - botocore.hooks - DEBUG - Event request-created.lambda.ListAliases: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x110989c18>>
2019-04-02 16:45:19,722 - MainThread - botocore.hooks - DEBUG - Event choose-signer.lambda.ListAliases: calling handler <function set_operation_specific_signer at 0x10ebc9a60>
2019-04-02 16:45:19,723 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-02 16:45:19,723 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
GET
/2015-03-31/functions/[lambda name]/aliases
host:lambda.us-west-2.amazonaws.com
x-amz-date:20190402T234519Z
host;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2019-04-02 16:45:19,723 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190402T234519Z
20190402/us-west-2/lambda/aws4_request
ade8984b578a7262ab7f3dc6dcf687ac1db9855af1e192efd99babd95caa6c59
2019-04-02 16:45:19,723 - MainThread - botocore.auth - DEBUG - Signature:
1f4f418ae8b6b48903ad6eb8d7cfa882c082b02f4055743b8e695f4d174ff881
2019-04-02 16:45:19,723 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/[lambda name]/aliases, headers={'User-Agent': b'aws-cli/1.16.106 Python/3.6.6 Darwin/18.5.0 botocore/1.12.96', 'X-Amz-Date': b'20190402T234519Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAJTCBAORSNCPWH4XA/20190402/us-west-2/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=1f4f418ae8b6b48903ad6eb8d7cfa882c082b02f4055743b8e695f4d174ff881'}>
2019-04-02 16:45:19,724 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-02 16:45:19,724 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): lambda.us-west-2.amazonaws.com:443
2019-04-02 16:45:19,865 - MainThread - urllib3.connectionpool - DEBUG - https://lambda.us-west-2.amazonaws.com:443 "GET /2015-03-31/functions/[lambda name]/aliases HTTP/1.1" 200 268
2019-04-02 16:45:19,866 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Tue, 02 Apr 2019 23:45:19 GMT', 'Content-Type': 'application/json', 'Content-Length': '268', 'Connection': 'keep-alive', 'x-amzn-RequestId': '5fe2b84b-55a1-11e9-9f1a-dfb4a4f99367'}
2019-04-02 16:45:19,866 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Aliases":[{"AliasArn":"arn:aws:lambda:us-west-2:[account]:function:[lambda name]:1-0-194","Description":"","FunctionVersion":"5","Name":"1-0-194","RevisionId":"970a3c48-f1f5-4eb3-a19f-6c9b759a3528","RoutingConfig":null}],"NextMarker":null}'
2019-04-02 16:45:19,867 - MainThread - botocore.hooks - DEBUG - Event needs-retry.lambda.ListAliases: calling handler <botocore.retryhandler.RetryHandler object at 0x1108532e8>
2019-04-02 16:45:19,867 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
{
"Aliases": [
{
"AliasArn": "arn:aws:lambda:us-west-2:[account]:function:[lambda name]:1-0-194",
"Name": "1-0-194",
"FunctionVersion": "5",
"Description": "",
"RevisionId": "970a3c48-f1f5-4eb3-a19f-6c9b759a3528"
}
]
}
@garzaa - Thank you for your post and debug log. I was able to reproduce the issue and confirmed this behavior is returning from the service which CLI does not control. It seems to me that this is a duplicate of #1904 . I will reach to our service team to get this fixed.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Most helpful comment
@garzaa - Thank you for your post and debug log. I was able to reproduce the issue and confirmed this behavior is returning from the service which CLI does not control. It seems to me that this is a duplicate of #1904 . I will reach to our service team to get this fixed.