Skip to content

Instantly share code, notes, and snippets.

@lmiguelmh
Created May 21, 2019 22:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lmiguelmh/2aaba4f0ab7fdc40692291a81103f032 to your computer and use it in GitHub Desktop.
sam local invoke log
$ sam local invoke --debug PyTorchFunction -n env.json -e event.json
2019-05-21 17:44:33 Using SAM Template at <HOME>/aws-lambda/template.yaml
2019-05-21 17:44:33 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-05-21 17:44:33 Changing event name from before-call.apigateway to before-call.api-gateway
2019-05-21 17:44:33 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-05-21 17:44:33 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-05-21 17:44:33 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-05-21 17:44:33 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-05-21 17:44:33 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-05-21 17:44:33 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-05-21 17:44:33 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-05-21 17:44:33 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-05-21 17:44:33 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-05-21 17:44:33 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-05-21 17:44:33 Changing event name from before-call.apigateway to before-call.api-gateway
2019-05-21 17:44:33 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-05-21 17:44:33 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-05-21 17:44:33 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-05-21 17:44:33 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-05-21 17:44:33 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-05-21 17:44:33 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-05-21 17:44:33 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-05-21 17:44:33 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-05-21 17:44:33 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-05-21 17:44:33 local invoke command is called
2019-05-21 17:44:33 Collected default values for parameters: {'ObjectKey': 'somekey', 'BucketName': 'somebucket', 'LambdaLayerArn': 'arn:aws:lambda:us-east-1:934676248949:layer:pytorchv1-py36:2'}
2019-05-21 17:44:33 2 resources found in the template
2019-05-21 17:44:33 Found Serverless function with name='PyTorchFunction' and CodeUri='pytorch/'
2019-05-21 17:44:33 Trying paths: ['<HOME>/.docker/config.json', '<HOME>/.dockercfg']
2019-05-21 17:44:33 Found file at path: <HOME>/.docker/config.json
2019-05-21 17:44:33 Found 'auths' section
2019-05-21 17:44:33 Found entry (registry=u'nvcr.io', username=u'$oauthtoken')
2019-05-21 17:44:33 http://localhost:None "GET /v1.35/_ping HTTP/1.1" 200 2
2019-05-21 17:44:33 Looking for credentials via: env
2019-05-21 17:44:33 Looking for credentials via: assume-role
2019-05-21 17:44:33 Looking for credentials via: shared-credentials-file
2019-05-21 17:44:33 Found credentials in shared credentials file: ~/.aws/credentials
2019-05-21 17:44:33 Loading JSON file: <HOME>/.local/lib/python2.7/site-packages/botocore/data/endpoints.json
2019-05-21 17:44:33 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f8927f5f578>
2019-05-21 17:44:33 Loading JSON file: <HOME>/.local/lib/python2.7/site-packages/botocore/data/lambda/2015-03-31/service-2.json
2019-05-21 17:44:33 Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x7f8928008aa0>
2019-05-21 17:44:33 The s3 config key is not a dictionary type, ignoring its value of: None
2019-05-21 17:44:33 Setting lambda timeout as (60, 60)
2019-05-21 17:44:33 Loading JSON file: <HOME>/.local/lib/python2.7/site-packages/botocore/data/_retry.json
2019-05-21 17:44:33 Registering retry handlers for service: lambda
2019-05-21 17:44:33 Trying paths: ['<HOME>/.docker/config.json', '<HOME>/.dockercfg']
2019-05-21 17:44:33 Found file at path: <HOME>/.docker/config.json
2019-05-21 17:44:33 Found 'auths' section
2019-05-21 17:44:33 Found entry (registry=u'nvcr.io', username=u'$oauthtoken')
2019-05-21 17:44:33 Found one Lambda function with name 'PyTorchFunction'
2019-05-21 17:44:33 Invoking app.lambda_handler (python3.6)
2019-05-21 17:44:33 Environment variables overrides data is standard format
2019-05-21 17:44:33 Loading AWS credentials from session with profile 'default'
2019-05-21 17:44:33 Resolving code path. Cwd=<HOME>/aws-lambda, CodeUri=pytorch/
2019-05-21 17:44:33 Resolved absolute path to code is <HOME>/aws-lambda/pytorch
2019-05-21 17:44:33 Code <HOME>/aws-lambda/pytorch is not a zip/jar file
2019-05-21 17:44:33 arn:aws:lambda:us-east-1:934676248949:layer:pytorchv1-py36:2 is already cached. Skipping download
2019-05-21 17:44:33 http://localhost:None "GET /v1.35/images/samcli/lambda:python3.6-355e75366d87dabec462ddf97/json HTTP/1.1" 200 None
2019-05-21 17:44:33 Trying paths: ['<HOME>/.docker/config.json', '<HOME>/.dockercfg']
2019-05-21 17:44:33 Found file at path: <HOME>/.docker/config.json
2019-05-21 17:44:33 Found 'auths' section
2019-05-21 17:44:33 Found entry (registry=u'nvcr.io', username=u'$oauthtoken')
2019-05-21 17:44:33 http://localhost:None "GET /v1.35/images/samcli/lambda:python3.6-355e75366d87dabec462ddf97/json HTTP/1.1" 200 None
2019-05-21 17:44:33 Requested to skip pulling images ...
2019-05-21 17:44:33 Mounting <HOME>/aws-lambda/pytorch as /var/task:ro,delegated inside runtime container
2019-05-21 17:44:33 http://localhost:None "POST /v1.35/containers/create HTTP/1.1" 201 201
2019-05-21 17:44:33 http://localhost:None "GET /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/json HTTP/1.1" 200 None
2019-05-21 17:44:33 http://localhost:None "GET /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/json HTTP/1.1" 200 None
2019-05-21 17:44:34 http://localhost:None "POST /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/start HTTP/1.1" 204 0
2019-05-21 17:44:34 Starting a timer for 30 seconds for function 'PyTorchFunction'
2019-05-21 17:44:34 http://localhost:None "GET /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/json HTTP/1.1" 200 None
2019-05-21 17:44:34 http://localhost:None "POST /containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/attach?stream=1&stdin=0&logs=1&stderr=1&stdout=1 HTTP/1.1" 101 0
2019-05-21 17:45:04 Function 'PyTorchFunction' timed out after 30 seconds
2019-05-21 17:45:04 http://localhost:None "GET /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/json HTTP/1.1" 200 None
2019-05-21 17:45:05 http://localhost:None "GET /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e/json HTTP/1.1" 200 None
2019-05-21 17:45:05 http://localhost:None "DELETE /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e?force=True&link=False&v=False HTTP/1.1" 409 123
2019-05-21 17:45:05 http://localhost:None "DELETE /v1.35/containers/4dbf3f249df4dbea5801ef56758d8061a23fcc28305bcae850e0b0a9dcbaa12e?force=True&link=False&v=False HTTP/1.1" 204 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment