title: Terraform error No default VPC found in this region
body: <p>I'm following the PluralSight course &quot;<a href="https://app.pluralsight.com/courses/cc6552b7-fc1c-4dfe-a3f3-635c8a0c4528/table-of-contents" rel="nofollow noreferrer">Terraform - Getting Started</a>&quot; and in it they refer to this terraform file <a href="https://github.com/ned1313/Getting-Started-Terraform/blob/master/m3/module_three.tf" rel="nofollow noreferrer">module_three.tf</a> which states the following:</p>
  <p><em>I have changed the original value <code>us-east-1</code> to my selected region <code>eu-west-2</code>...</em></p>
  <pre><code>variable &quot;region&quot; {
    default = &quot;eu-west-2&quot;
  }
  </code></pre>
  <p>...and...</p>
  <pre><code>#This uses the default VPC.  It WILL NOT delete it on destroy.
  resource &quot;aws_default_vpc&quot; &quot;default&quot; {
  
  }
  </code></pre>
  <p>The commands <code>terraform init</code> and <code>terraform plan</code> execute as expected (and as described in the course), but <code>terraform apply</code> produces this output:</p>
  <pre><code>aws_default_vpc.default: Creating...
  
  Error: No default VPC found in this region.
  </code></pre>
  <p><strong>How can I determine the default VPC in a given region and how can I specify a default VPC for my region?</strong></p>
  <p>Having to ask that question appears to go against the AWS documentation, as in their section <a href="https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html" rel="nofollow noreferrer">Default VPC and default subnets</a> they clearly state:</p>
  <blockquote>
  <p>If you created your AWS account after 2013-12-04, it supports only
  EC2-VPC. In this case, you have a <em>default</em> VPC in each AWS Region. A
  default VPC is ready for you to use so that you don't have to create
  and configure your own VPC. You can immediately start launching Amazon
  EC2 instances into your default VPC. You can also use services such as
  Elastic Load Balancing, Amazon RDS, and Amazon EMR in your default
  VPC.</p>
  </blockquote>