We are managing Cloudfront with Terraform and keep seeing timeouts before the deployment is complete or modified. It does take a fair bit of time to deploy ( 20 mins ). The error that I see -
Error: error waiting until CloudFront Distribution (<>) is deployed: RequestError: send request failed caused by: Get https://cloudfront.amazonaws.com/<>: read tcp <>><>: read: connection reset by peer
Is there a way I can make terraform cli wait for the apply to complete successfully or is it timing out connecting to the s3 backend ?