Search code examples
amazon-web-servicesetlaws-glue

AWS Glue Python Shell Job Connect Timeout Error


Trying to run AWS Glue Python Shell Job but gives me Connect Timeout Error

Error Image : https://i.sstatic.net/MHpHg.png

Script : https://i.sstatic.net/KQxkj.png


Solution

  • It looks like you didn't added secretsmanager endpoint to your VPC. As the traffic will not leave AWS network there will not be internet access inside your Glue job's VPC. So if you want to connect to secretsmanager then you need to add it to your VPC.

    Refer to this on how you can add this to your VPC and this to make sure you have properly configured security groups.