localstack / serverless-localstack

⚡ Serverless plugin for running against LocalStack
527 stars 87 forks source link

Serverless Error 502 #57

Closed fsproru closed 4 years ago

fsproru commented 4 years ago

Deploying our Tanks project Commandeer Open Source project into LocalStack throws a 502 error whereas deploying it to AWS works just fine. We're using the latest version of LocalStack Docker image started using localstack start with all services started.

Serverless Setup: https://github.com/commandeer/open/pull/25/files

sls deploy output

Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command deploy
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Using serverless-localstack
Serverless: Unable to find function downloadPackageArtifacts on plugin AwsCompileFunctions
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Compiling with Typescript...
Serverless: Typescript compiled.
Serverless: Skip plugin function Package.packageService (lambda.mountCode flag is enabled)
Serverless: Skip plugin function TypeScriptPlugin.cleanup (lambda.mountCode flag is enabled)
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: Skip plugin function AwsDeploy.extendedValidate (lambda.mountCode flag is enabled)
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 400 0.029s 0 retries] describeStacks({ StackName: 'commandeer-tanks-local' })
Serverless: Creating Stack...
Serverless: [AWS cloudformation 200 0.048s 0 retries] createStack({ StackName: 'commandeer-tanks-local',
  OnFailure: 'DELETE',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateBody:
   '{"AWSTemplateFormatVersion":"2010-09-09","Description":"The AWS CloudFormation template for this Serverless application","Resources":{"ServerlessDeploymentBucket":{"Type":"AWS::S3::Bucket","Properties":{"BucketEncryption":{"ServerSideEncryptionConfiguration":[{"ServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}]}}}},"Outputs":{"ServerlessDeploymentBucketName":{"Value":{"Ref":"ServerlessDeploymentBucket"}}}}',
  Tags: [ { Key: 'STAGE', Value: 'local' }, [length]: 1 ] })
Serverless: Checking Stack create progress...
Serverless: [AWS cloudformation 502 0.888s 3 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-east-1:000000000000:stack/commandeer-tanks-local/758a3436-4e35-4c93-8f01-008d4d06b36a' })
Serverless: Recoverable error occurred (502), sleeping for 5 seconds. Try 1 of 4
Serverless: [AWS cloudformation 502 0.404s 3 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-east-1:000000000000:stack/commandeer-tanks-local/758a3436-4e35-4c93-8f01-008d4d06b36a' })
Serverless: Recoverable error occurred (502), sleeping for 5 seconds. Try 2 of 4
Serverless: [AWS cloudformation 502 0.21s 3 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-east-1:000000000000:stack/commandeer-tanks-local/758a3436-4e35-4c93-8f01-008d4d06b36a' })
Serverless: Recoverable error occurred (502), sleeping for 5 seconds. Try 3 of 4
Serverless: [AWS cloudformation 502 0.505s 3 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-east-1:000000000000:stack/commandeer-tanks-local/758a3436-4e35-4c93-8f01-008d4d06b36a' })
Serverless: Recoverable error occurred (502), sleeping for 5 seconds. Try 4 of 4
Serverless: [AWS cloudformation 502 0.36s 3 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-east-1:000000000000:stack/commandeer-tanks-local/758a3436-4e35-4c93-8f01-008d4d06b36a' })

  Serverless Error ---------------------------------------

  502

  Stack Trace --------------------------------------------

ServerlessError: 502
    at provider.request.then.catch (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:130:26)
From previous event:
    at AwsDeploy.monitorStack (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:31:12)
    at provider.request.then (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/lib/createStack.js:43:31)
From previous event:
    at AwsDeploy.create (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/lib/createStack.js:43:9)
From previous event:
    at AwsDeploy.BbPromise.bind.then.catch (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/lib/createStack.js:87:14)
From previous event:
    at AwsDeploy.createStack (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/lib/createStack.js:80:13)
From previous event:
    at Object.aws:deploy:deploy:createStack [as hook] (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:100:10)
    at BbPromise.reduce (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:407:55)
From previous event:
    at PluginManager.invoke (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:407:22)
    at PluginManager.spawn (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:425:17)
    at AwsDeploy.BbPromise.bind.then (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:93:48)
From previous event:
    at Object.deploy:deploy [as hook] (~/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:89:10)
    at BbPromise.reduce (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:407:55)
From previous event:
    at PluginManager.invoke (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:407:22)
    at PluginManager.run (~/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:438:17)
    at variables.populateService.then.then (~/.config/yarn/global/node_modules/serverless/lib/Serverless.js:114:33)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
    at Serverless.run (~/.config/yarn/global/node_modules/serverless/lib/Serverless.js:101:6)
    at serverless.init.then (~/.config/yarn/global/node_modules/serverless/bin/serverless:43:28)
    at ~/.config/yarn/global/node_modules/graceful-fs/graceful-fs.js:111:16
    at ~/code/commandeer/open/templates/serverless/node_modules/graceful-fs/graceful-fs.js:57:14
    at ~/.config/yarn/global/node_modules/graceful-fs/graceful-fs.js:45:10
    at FSReqWrap.oncomplete (fs.js:141:20)
From previous event:
    at initializeErrorReporter.then (~/.config/yarn/global/node_modules/serverless/bin/serverless:43:6)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
    at ~/.config/yarn/global/node_modules/serverless/bin/serverless:28:46
    at Object.<anonymous> (~/.config/yarn/global/node_modules/serverless/bin/serverless:67:4)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           10.15.2
     Serverless Version:     1.38.0

Localstack Output

localstack start
Starting local dev environment. CTRL-C to quit.
docker run -it -e LOCALSTACK_HOSTNAME="localhost" -e DEFAULT_REGION="us-east-1" -e TEST_AWS_ACCOUNT_ID="000000000000" -e LOCALSTACK_HOSTNAME="localhost" --rm --privileged --name localstack_main -p 8080:8080 -p 8081:8081  -p 443:443 -p 4567-4608:4567-4608  -v "/private/var/folders/s0/k_wc_qsn43d5t5n2_fv9bqxm0000gn/T/localstack:/tmp/localstack" -v "/var/run/docker.sock:/var/run/docker.sock" -e DOCKER_HOST="unix:///var/run/docker.sock" -e HOST_TMP_FOLDER="/private/var/folders/s0/k_wc_qsn43d5t5n2_fv9bqxm0000gn/T/localstack" "localstack/localstack"
Waiting for all LocalStack services to be ready
2019-11-22 19:40:48,802 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2019-11-22 19:40:48,806 INFO supervisord started with pid 13
2019-11-22 19:40:49,809 INFO spawned: 'dashboard' with pid 19
2019-11-22 19:40:49,810 INFO spawned: 'infra' with pid 20
(. .venv/bin/activate; bin/localstack web)
2019-11-22 19:40:49,820 INFO success: dashboard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
(. .venv/bin/activate; exec bin/localstack start --host)
2019-11-22 19:40:50,824 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-11-22T19:40:52:WARNING:bootstrap.py: Unable to load plugins from file /opt/code/localstack/.venv/lib/python3.7/site-packages/localstack_ext/plugins.py: No module named 'localstack_ext.utils.aws.aws_models'
Starting local dev environment. CTRL-C to quit.
Starting mock ES service (http port 4578)...
Starting local Elasticsearch (http port 4571)...
Starting mock S3 (http port 4572)...
Starting mock SNS (http port 4575)...
Starting mock SQS (http port 4576)...
Starting mock SES (http port 4579)...
Starting mock SSM (http port 4583)...
Starting mock STS (http port 4592)...
Starting mock IAM (http port 4593)...
Starting mock Secrets Manager (http port 4584)...
Starting mock API Gateway (http port 4567)...
Starting mock DynamoDB (http port 4569)...
Starting mock DynamoDB Streams service (http port 4570)...
Starting mock Firehose service (http port 4573)...
Starting mock Lambda service (http port 4574)...
Starting mock Kinesis (http port 4568)...
Starting mock Redshift (http port 4577)...
Starting mock Route53 (http port 4580)...
Starting mock CloudFormation (http port 4581)...
Starting mock CloudWatch (http port 4582)...
Starting mock CloudWatch Events (http port 4587)...
Starting mock CloudWatch Logs (http port 4586)...
Starting mock StepFunctions (http port 4585)...
Starting mock EC2 (http port 4597)...
2019-11-22T19:40:54:INFO:localstack.multiserver: Starting multi API server process on port 51492
2019-11-22T19:40:55:ERROR:localstack.services.generic_proxy: Error forwarding request: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee24b96d0>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
    conn = self._new_conn()
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5ee24b96d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee24b96d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 275, in forward
    headers=forward_headers, stream=True)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee24b96d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Waiting for all LocalStack services to be ready
2019-11-22T19:40:55:ERROR:localstack.services.generic_proxy: Error forwarding request: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee2438a10>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
    conn = self._new_conn()
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5ee2438a10>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee2438a10>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 275, in forward
    headers=forward_headers, stream=True)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5ee2438a10>: Failed to establish a new connection: [Errno 111] Connection refused'))

Waiting for all LocalStack services to be ready
Waiting for all LocalStack services to be ready
Waiting for all LocalStack services to be ready
Ready.

2019-11-22T19:41:46:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:46:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:46:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:47:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:52:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:52:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:52:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:52:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:57:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:57:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:57:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:41:57:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:02:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:02:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:02:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:03:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:08:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:08:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:08:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

2019-11-22T19:42:08:ERROR:localstack.services.generic_proxy: Error forwarding request: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' Traceback (most recent call last):
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
    parser.feed(xml_string)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 54

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/generic_proxy.py", line 240, in forward
    path=path, data=data, headers=forward_headers)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 149, in forward_request
    tmp = client.describe_stack_events(StackName=stack_name)['StackEvents'][:1]
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 240, in parse
    parsed = self._do_error_parse(response, shape)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 485, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/parsers.py", line 437, in _parse_xml_string_to_dom
    "invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'
fsproru commented 4 years ago

@whummer thanks for helping out with the previous issue, now we're running into this one. Looks like some folks are running into a similar issue based on some existing Github issues in this repo. Let me know if you need any help.

whummer commented 4 years ago

Thanks for reporting @fsproru . LocalStack is currently single-region, i.e., the region configured on the client (us-west-1 in your sample) needs to match the region defined on the server (us-east-1 by default).

Can you please try starting LocalStack with these environment variables:

AWS_DEFAULT_REGION=us-west-1
DEFAULT_REGION=us-west-1

Please let me know if that works. Thanks

fsproru commented 4 years ago

Thanks @whummer, switched the template to us-east-1 to use the default LocalStack region. Got a different kind of 500 error with a different log. Is this somehow related to LAMBDA_REMOTE_DOCKER=1 ?

Starting local dev environment. CTRL-C to quit.
docker run -it -e LOCALSTACK_HOSTNAME="localhost" -e DEFAULT_REGION="us-east-1" -e TEST_AWS_ACCOUNT_ID="000000000000" -e LOCALSTACK_HOSTNAME="localhost" --rm --privileged --name localstack_main -p 8080:8080 -p 8081:8081  -p 443:443 -p 4567-4608:4567-4608  -v "/private/var/folders/s0/k_wc_qsn43d5t5n2_fv9bqxm0000gn/T/localstack:/tmp/localstack" -v "/var/run/docker.sock:/var/run/docker.sock" -e DOCKER_HOST="unix:///var/run/docker.sock" -e HOST_TMP_FOLDER="/private/var/folders/s0/k_wc_qsn43d5t5n2_fv9bqxm0000gn/T/localstack" "localstack/localstack"
Waiting for all LocalStack services to be ready
2019-11-25 06:44:07,741 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2019-11-25 06:44:07,743 INFO supervisord started with pid 14
2019-11-25 06:44:08,752 INFO spawned: 'dashboard' with pid 20
2019-11-25 06:44:08,754 INFO spawned: 'infra' with pid 21
(. .venv/bin/activate; bin/localstack web)
2019-11-25 06:44:08,762 INFO success: dashboard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
(. .venv/bin/activate; exec bin/localstack start --host)
2019-11-25 06:44:09,763 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-11-25T06:44:10:WARNING:bootstrap.py: Unable to load plugins from file /opt/code/localstack/.venv/lib/python3.7/site-packages/localstack_ext/plugins.py: No module named 'localstack_ext.utils.aws.aws_models'
Starting local dev environment. CTRL-C to quit.
Starting mock ES service (http port 4578)...
Starting local Elasticsearch (http port 4571)...
Waiting for all LocalStack services to be ready
Starting mock S3 (http port 4572)...
Starting mock SNS (http port 4575)...
Starting mock SQS (http port 4576)...
Starting mock SES (http port 4579)...
Starting mock SSM (http port 4583)...
Starting mock STS (http port 4592)...
Starting mock IAM (http port 4593)...
Starting mock Secrets Manager (http port 4584)...
Starting mock API Gateway (http port 4567)...
Starting mock DynamoDB (http port 4569)...
Starting mock DynamoDB Streams service (http port 4570)...
Starting mock Firehose service (http port 4573)...
Starting mock Lambda service (http port 4574)...
Starting mock Kinesis (http port 4568)...
Starting mock Redshift (http port 4577)...
Starting mock Route53 (http port 4580)...
Starting mock CloudFormation (http port 4581)...
Starting mock CloudWatch (http port 4582)...
Starting mock CloudWatch Events (http port 4587)...
Starting mock CloudWatch Logs (http port 4586)...
Starting mock StepFunctions (http port 4585)...
Starting mock EC2 (http port 4597)...
2019-11-25T06:44:13:INFO:localstack.multiserver: Starting multi API server process on port 51492
Waiting for all LocalStack services to be ready
Waiting for all LocalStack services to be ready
Waiting for all LocalStack services to be ready
Ready.
2019-11-25T06:45:05:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankS3FileCreatedEvent
2019-11-25T06:45:05:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:05:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:07:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:08:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:14:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:14:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankS3FileCreatedEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/s3/tankS3FileCreatedHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankS3FileCreatedEvent', 'Handler': '.build/handlers/s3/tankS3FileCreatedHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankS3FileCreatedEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:45:14:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankS3FileCreatedEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:19:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:45:19:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:19:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:20:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:22:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:25:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:25:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:45:25:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:25:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:45:25:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:26:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:28:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:29:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:34:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:34:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:45:34:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:34:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:45:34:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:35:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:35:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:35:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:41:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:45:41:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:41:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:45:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:43:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:44:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:48:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:48:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:45:48:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:53:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:45:53:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:53:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:54:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:45:56:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:00:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:00:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:00:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:00:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:00:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:01:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:06:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:11:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:11:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:11:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:11:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:11:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:11:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:13:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:14:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:18:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:18:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:18:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:18:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:18:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:18:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:20:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:24:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:26:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:26:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:26:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:31:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:31:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:31:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:32:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:33:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:41:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:41:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:42:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:42:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:43:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:43:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:46:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:54:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:54:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:46:54:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:54:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:46:54:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:55:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:57:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:46:57:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:01:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:01:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:01:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:02:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:04:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:10:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:10:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:10:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:15:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:15:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:15:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:17:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:21:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:24:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:24:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:24:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:24:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:24:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:24:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:25:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:27:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:28:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:28:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:28:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:28:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:28:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:29:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:30:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:32:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:37:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:37:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:37:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:37:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:37:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:37:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:38:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:41:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:41:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:41:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:46:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:46:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:47:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:48:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:50:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:51:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:51:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:51:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:51:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:51:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:52:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:53:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:53:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:56:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:56:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:47:56:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:56:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:47:56:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:57:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:57:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:47:59:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:01:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:01:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:48:01:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:01:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:commandeer-tanks-local-tankDynamoStreamEvent
2019-11-25T06:48:01:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:02:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:03:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:10:WARNING:localstack.services.awslambda.lambda_api: Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1

2019-11-25T06:48:10:WARNING:localstack.utils.cloudformation.template_deployer: Error calling <bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.Lambda object at 0x7fd75d270190>> with params: {'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'Timeout': 900, 'MemorySize': 256} for resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': '__local__', 'S3Key': '/Users/fsproru/code/commandeer/open/templates/serverless'}, 'FunctionName': 'commandeer-tanks-local-tankDynamoStreamEvent', 'Handler': '.build/handlers/dynamo-streams/tankDynamoStreamHandler.process', 'MemorySize': 256, 'Role': 'arn:aws:iam::000000000000:role/commandeer-tanks-local-IamRoleLambdaExecution-ZPBFGVXAIEUY', 'Runtime': 'nodejs10.x', 'Timeout': 900, 'Tags': [{'Key': 'DEPARTMENT', 'Value': 'MACHINERY'}, {'Key': 'ENVIRONMENT', 'Value': 'DEV'}]}, 'DependsOn': ['TankDynamoStreamEventLogGroup', 'IamRoleLambdaExecution']}
2019-11-25T06:48:10:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "TankDynamoStreamEventLambdaFunction": An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 173, in parse_and_create_resource
    return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
  File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 260, in _parse_and_create_resource
    result = deploy_func(logical_id, resource_wrapped, stack_name=stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 713, in deploy_resource
    result = deploy_resource_via_sdk_function(resource_id, resources, resource_type, func, stack_name)
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 783, in deploy_resource_via_sdk_function
    raise e
  File "/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py", line 780, in deploy_resource_via_sdk_function
    result = function(**params)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/code/localstack/.venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreateFunction operation (reached max retries: 4): Unknown error: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1 Traceback (most recent call last):
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 754, in create_function
    result = set_function_code(func_details.code, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 545, in set_function_code
    lambda_cwd = lambda_cwd or set_archive_code(code_passed, lambda_name)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 500, in set_archive_code
    raise Exception(msg % BUCKET_MARKER_LOCAL)
Exception: Please note that Lambda mounts (bucket name "__local__") cannot be used with LAMBDA_REMOTE_DOCKER=1
fsproru commented 4 years ago

Tried it with starting LocalStack with AWS_DEFAULT_REGION=us-west-1 DEFAULT_REGION=us-west-1 and specifying the us-west-1 region, got the same error as above.

fsproru commented 4 years ago

Hey @whummer, let me know if you need any help. Deploying Serverless into LocalStack will allow us to do a whole IaC tutorial in Commandeer which would be a great use of LocalStack.

whummer commented 4 years ago

Hi @fsproru, seeing this in the logs:

Exception: Please note that Lambda mounts (bucket name "local") cannot be used with LAMBDA_REMOTE_DOCKER=1

Is this somehow related to LAMBDA_REMOTE_DOCKER=1 ?

Yep, exactly. LAMBDA_REMOTE_DOCKER=1 is the default, but local Lambda mounts do not work in conjunction with LAMBDA_REMOTE_DOCKER=1 (because in general remote Docker engines cannot mount local directories)

Have you tried running it with LAMBDA_REMOTE_DOCKER=0 ?

fsproru commented 4 years ago

@whummer, than you sir, that was exactly it! Starting LocalStack with LAMBDA_REMOTE_DOCKER=0 worked beautifully and I was able to deploy Serverless into LocalStack.

Looking deeper into my serverless.yml I see that I was using mountCode: True which is most likely why LAMBDA_REMOTE_DOCKER=0 was needed. I also tried to comment out mountCode: True and ran it against LocalStack started without LAMBDA_REMOTE_DOCKER=0 which also worked.

Since LAMBDA_REMOTE_DOCKER=1 is a default for LocalStack, I would suggest using mountCode: False or commenting it out from the example in the readme for serverless-localstack. This way the default example will work with the default settings of LocalStack.

Thanks for you help @whummer, closing the issue.

dcabib commented 4 years ago

LAMBDA_REMOTE_DOCKER=0

My friend, where did you set LAMBDA_REMOTE_DOCKER=0????? Can you share steps to make it work?

Thanks

fsproru commented 4 years ago

You’ll need to pass it as an environment variable to LocalStack when you start it. You can check out LocalStack readme file for more details.

On Wed, Aug 12, 2020 at 5:46 AM Daniel Abib notifications@github.com wrote:

LAMBDA_REMOTE_DOCKER=0

My friend, where did you set LAMBDA_REMOTE_DOCKER=0????? Can you share steps to make it work?

Thanks

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/localstack/serverless-localstack/issues/57#issuecomment-672849049, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHYOBTNID2D22RDZE47SZTSAKFK5ANCNFSM4JQVLR6Q .