When we make a call to AWS Lambda using the awscli during the development stage we sometimes get a timeout error. We don’t get this error when running the command locally, only in the circleci environment.
The error we get is
HTTPSConnectionPool(host='lambda.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=60)
We tried upgrading the awscli as part of the machine: pre stage and still got that error. We finally resolved it by adding
--cli-connect-timeout 180 to the command.
Why are we getting this timeout error in circleci?