Skip to content

Instantly share code, notes, and snippets.

@ericallam
Created March 19, 2019 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericallam/fc719b79e8d300a790c3dd74e97c854d to your computer and use it in GitHub Desktop.
Save ericallam/fc719b79e8d300a790c3dd74e97c854d to your computer and use it in GitHub Desktop.
Output of sam build
2019-03-19 11:45:41 Using SAM Template at /Users/eric/code/Solve/opensource/ship-logs-to-honeycomb/template.yml
2019-03-19 11:45:41 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-03-19 11:45:41 Changing event name from before-call.apigateway to before-call.api-gateway
2019-03-19 11:45:41 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-03-19 11:45:41 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-03-19 11:45:41 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-03-19 11:45:41 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-03-19 11:45:41 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-03-19 11:45:41 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-03-19 11:45:41 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-03-19 11:45:41 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-03-19 11:45:41 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-03-19 11:45:41 Setting config variable for profile to 'solve-dev-eric'
2019-03-19 11:45:41 'build' command is called
2019-03-19 11:45:41 Skipping environment variable credential check because profile name was explicitly set.
2019-03-19 11:45:41 Looking for credentials via: assume-role
2019-03-19 11:45:41 Looking for credentials via: shared-credentials-file
2019-03-19 11:45:41 Found credentials in shared credentials file: ~/.aws/credentials
2019-03-19 11:45:41 Loading JSON file: /usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/botocore/data/endpoints.json
2019-03-19 11:45:41 Event choose-service-name: calling handler <function handle_service_name_alias at 0x105453840>
2019-03-19 11:45:41 Loading JSON file: /usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/botocore/data/serverlessrepo/2017-09-08/service-2.json
2019-03-19 11:45:41 Event creating-client-class.serverlessapplicationrepository: calling handler <function add_generate_presigned_url at 0x105417378>
2019-03-19 11:45:41 The s3 config key is not a dictionary type, ignoring its value of: None
2019-03-19 11:45:41 Setting serverlessrepo timeout as (60, 60)
2019-03-19 11:45:41 Loading JSON file: /usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/botocore/data/_retry.json
2019-03-19 11:45:41 Registering retry handlers for service: serverlessrepo
2019-03-19 11:45:41 Event before-parameter-build.serverlessapplicationrepository.CreateCloudFormationTemplate: calling handler <function generate_idempotent_uuid at 0x10546fea0>
2019-03-19 11:45:41 Event before-call.serverlessapplicationrepository.CreateCloudFormationTemplate: calling handler <function inject_api_version_header_if_needed at 0x1054739d8>
2019-03-19 11:45:41 Making request for OperationModel(name=CreateCloudFormationTemplate) with params: {'url_path': '/applications/arn%3Aaws%3Aserverlessrepo%3Aus-east-1%3A958845080241%3Aapplications%2Flambda-logs-event-source/templates', 'query_string': {}, 'method': 'POST', 'headers': {'User-Agent': 'Boto3/1.9.116 Python/3.7.2 Darwin/18.0.0 Botocore/1.12.116'}, 'body': b'{"semanticVersion": "1.0.2"}', 'url': 'https://serverlessrepo.eu-west-2.amazonaws.com/applications/arn%3Aaws%3Aserverlessrepo%3Aus-east-1%3A958845080241%3Aapplications%2Flambda-logs-event-source/templates', 'context': {'client_region': 'eu-west-2', 'client_config': <botocore.config.Config object at 0x106e29668>, 'has_streaming_input': False, 'auth_type': None}}
2019-03-19 11:45:41 Event request-created.serverlessapplicationrepository.CreateCloudFormationTemplate: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x106e29630>>
2019-03-19 11:45:41 Event choose-signer.serverlessapplicationrepository.CreateCloudFormationTemplate: calling handler <function set_operation_specific_signer at 0x10546fd90>
2019-03-19 11:45:41 Calculating signature using v4 auth.
2019-03-19 11:45:41 CanonicalRequest:
POST
/applications/arn%253Aaws%253Aserverlessrepo%253Aus-east-1%253A958845080241%253Aapplications%252Flambda-logs-event-source/templates
host:serverlessrepo.eu-west-2.amazonaws.com
x-amz-date:20190319T114541Z
host;x-amz-date
21a72101d3c40dc00b525f533149c759bdad100ff8e5adaf81ed58cce96b3708
2019-03-19 11:45:41 StringToSign:
AWS4-HMAC-SHA256
20190319T114541Z
20190319/eu-west-2/serverlessrepo/aws4_request
7eb5426aca978b6bd0cdb9278cdbe0486296e6b6505d43c0231874fc8fb79b0a
2019-03-19 11:45:41 Signature:
a4913486b24107081d5bfd07b77da3f1626ea295176195c9bee0060fcc573093
2019-03-19 11:45:41 Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://serverlessrepo.eu-west-2.amazonaws.com/applications/arn%3Aaws%3Aserverlessrepo%3Aus-east-1%3A958845080241%3Aapplications%2Flambda-logs-event-source/templates, headers={'User-Agent': b'Boto3/1.9.116 Python/3.7.2 Darwin/18.0.0 Botocore/1.12.116', 'X-Amz-Date': b'20190319T114541Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAJ3HXIMD2V5VZ64KA/20190319/eu-west-2/serverlessrepo/aws4_request, SignedHeaders=host;x-amz-date, Signature=a4913486b24107081d5bfd07b77da3f1626ea295176195c9bee0060fcc573093', 'Content-Length': '28'}>
2019-03-19 11:45:41 Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-03-19 11:45:41 Starting new HTTPS connection (1): serverlessrepo.eu-west-2.amazonaws.com:443
2019-03-19 11:45:42 https://serverlessrepo.eu-west-2.amazonaws.com:443 "POST /applications/arn%3Aaws%3Aserverlessrepo%3Aus-east-1%3A958845080241%3Aapplications%2Flambda-logs-event-source/templates HTTP/1.1" 404 178
2019-03-19 11:45:42 Response headers: {'Date': 'Tue, 19 Mar 2019 11:45:42 GMT', 'Content-Type': 'application/json', 'Content-Length': '178', 'Connection': 'keep-alive', 'x-amzn-RequestId': '8600c079-4a3c-11e9-944a-4da85a05ff96', 'x-amzn-ErrorType': 'NotFoundException', 'x-amz-apigw-id': 'WyZv6HtorPEFiiA=', 'X-Amzn-Trace-Id': 'Root=1-5c90d665-4178b5aa1dbd7a1386a93f68'}
2019-03-19 11:45:42 Response body:
b'{"message":"Application arn:aws:serverlessrepo:us-east-1:958845080241:applications/lambda-logs-event-source does not have a version 1.0.2","errorCode":"VersionNotFoundException"}'
2019-03-19 11:45:42 Event needs-retry.serverlessapplicationrepository.CreateCloudFormationTemplate: calling handler <botocore.retryhandler.RetryHandler object at 0x106e29940>
2019-03-19 11:45:42 No retry needed.
Traceback (most recent call last):
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/lib/samlib/wrapper.py", line 67, in run_plugins
parser.parse(template_copy, all_plugins) # parse() will run all configured plugins
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/lib/samlib/wrapper.py", line 134, in parse
raise InvalidDocumentException(document_errors)
samtranslator.model.exceptions.InvalidDocumentException: [InvalidResourceException('LogSource', 'Application arn:aws:serverlessrepo:us-east-1:958845080241:applications/lambda-logs-event-source does not have a version 1.0.2')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/sam", line 11, in <module>
load_entry_point('aws-sam-cli==0.13.0', 'console_scripts', 'sam')()
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/commands/build/command.py", line 95, in cli
skip_pull_image, parameter_overrides) # pragma: no cover
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/commands/build/command.py", line 124, in do_cli
skip_pull_image=skip_pull_image) as ctx:
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/commands/build/build_context.py", line 57, in __enter__
self._function_provider = SamFunctionProvider(self._template_dict, self._parameter_overrides)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/commands/local/lib/sam_function_provider.py", line 45, in __init__
self.template_dict = SamBaseProvider.get_template(template_dict, parameter_overrides)
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/commands/local/lib/sam_base_provider.py", line 62, in get_template
template_dict = SamTranslatorWrapper(template_dict).run_plugins()
File "/usr/local/Cellar/aws-sam-cli/0.13.0/libexec/lib/python3.7/site-packages/samcli/lib/samlib/wrapper.py", line 70, in run_plugins
functools.reduce(lambda message, error: message + ' ' + str(error), e.causes, str(e)))
samcli.commands.validate.lib.exceptions.InvalidSamDocumentException: [InvalidResourceException('LogSource', 'Application arn:aws:serverlessrepo:us-east-1:958845080241:applications/lambda-logs-event-source does not have a version 1.0.2')] ('LogSource', 'Application arn:aws:serverlessrepo:us-east-1:958845080241:applications/lambda-logs-event-source does not have a version 1.0.2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment