title: Intermittent "Context Canceled" error on Terraform Plan
body: <p>I'm running a terraform plan through AWS Codebuild. terraform init works consistently but terraform plan intermittently throws this error:</p>
  <blockquote>
  <p>Error: rpc error: code = Canceled desc = context canceled</p>
  </blockquote>
  <ul>
  <li>terraform version: 0.12.31</li>
  <li>aws provider version: ~&gt; 3.55.0</li>
  </ul>
  <p>The intention here was to change Python lambda runtimes from 3.6 to 3.9. In this regard, I upgraded terraform from 0.12.21 to 0.12.31 and aws provider version from ~&gt;2 to ~&gt; 3.55.0 (aws provider version 3.55.0 is the first version that supports python 3.9 runtime)</p>
  <p>I've seen that others have had similar issues and what seemed to have worked for them is trying a different version of the provider. I wanted to keep these versions of terraform and aws provider because if I upgrade it further here, it would have consequences elsewhere in our pipeline. Does anyone have any ideas on how I can move forward?</p>