AWS CodeBuild – Build does not have internet connectivity. Please check subnet network configuration : <p>I am experimenting with CodeBuild but have reached a dead-end. My build always fails with the error message:</p>

<blockquote>
  <p>Build does not have internet connectivity. Please check subnet network configuration.</p>
</blockquote>

<p>I checked the VPC configuration (subnet, security groups), and they seem okay. To test internet connectivity, I launched an EC2 instance in the same subnet, and it is able to communicate with external services (I tried a ping and some HTTP GETs).</p>

<p>How do I resolve this 'internet connectivity' issue?</p>
