aws-samples / appstream-serverless-image-creation-automation

This repository contains the file associated with the Amazon AppStream 2.0 Serverless Image Automation blog posts.
MIT No Attribution
10 stars 6 forks source link

Error on Notepad++ lambda funtion #20

Closed vertual-hb closed 4 months ago

vertual-hb commented 4 months ago

Hi,

I followed the instructions from and created 2 VPC endpoints, one for secret manager and the other for S3 Interface. When I ran the step functions, it ended with an exception:

[ERROR] ChunkedEncodingError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) Traceback (most recent call last):
File "/var/task/lambda_function.py", line 100, in lambda_handler result = session.run_ps(command) File "/opt/python/winrm/__init__.py", line 52, in run_ps rs = self.run_cmd('powershell -encodedcommand {0}'.format(encoded_ps)) File "/opt/python/winrm/__init__.py", line 41, in run_cmd rs = Response(self.protocol.get_command_output(shell_id, command_id)) File "/opt/python/winrm/protocol.py", line 449, in get_command_output self._raw_get_command_output(shell_id, command_id) File "/opt/python/winrm/protocol.py", line 468, in _raw_get_command_output res = self.send_message(xmltodict.unparse(req)) File "/opt/python/winrm/protocol.py", line 243, in send_message resp = self.transport.send_message(message) File "/opt/python/winrm/transport.py", line 334, in send_message response = self._send_message_request(prepared_request, message) File "/opt/python/winrm/transport.py", line 339, in _send_message_request response = self.session.send(prepared_request, timeout=self.read_timeout_sec) File "/opt/python/requests/sessions.py", line 697, in send r.content File "/opt/python/requests/models.py", line 836, in content self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b'' File "/opt/python/requests/models.py", line 761, in generate raise ChunkedEncodingError(e)

The image builder is enabled with internet acess

Thank you