CSV file generation in S3 from Trino query

,

Python AWS Lambda functions to generate a single CSV file in a S3 bucket from a Trino SQL query result :slightly_smiling_face:
Code, examples and tests here GitHub - victorcouste/trino-s3-csv-generation-python: Python AWS Lambda functions to generate single CSV file in a S3 bucket from a Trino SQL query

Hi Victor, I am trying to connect to starburst through lambda function. I am continuously getting following error.
1.Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f5410263340>
2.Caused by ProxyError(‘Unable to connect to proxy’, OSError(‘Tunnel connection failed: 502 Bad Gateway’)
do i need to configure my VPC can you please guide me here. However, i am able to connect starburst in my local like using VS code. this problem is coming when i am doing through lambda fuction