title: Attaching an AWS VPC to an IGW with Terraform
body: <p>I am trying to build a VPC resource with Terraform to provide for an MWAA build.  In the AWS documentation, I see the below resources (in addition to subnets, etc.) are defined to create a whole VPC environment.  I have defined <code>aws_vpc</code> &amp; <code>aws_internet_gateway</code> with Terraform, but cannot find a Terraform template for <code>InternetGatewayAttachment</code> - <em><strong>only</strong></em> for <code>aws_vpn_gateway_attachment</code>.</p>
  <ol>
  <li><strong>How do I go about attaching the VPC resource to the IGW w/Terraform?</strong></li>
  <li><strong>Do I need an  resource, or is that implied w/the vpc_id in the TF aws_internet_gateway resource definition?</strong></li>
  </ol>
  <p>P. S. - I am coming from GCP &amp; not <em>super</em> familiar w/AWS Networking concepts.</p>
  <pre><code>Resources:
    VPC:
      Type: AWS::EC2::VPC
      Properties:
        CidrBlock: !Ref VpcCIDR
        EnableDnsSupport: true
        EnableDnsHostnames: true
        Tags:
          - Key: Name
            Value: !Ref EnvironmentName
  
    InternetGateway:
      Type: AWS::EC2::InternetGateway
      Properties:
        Tags:
          - Key: Name
            Value: !Ref EnvironmentName
  
    InternetGatewayAttachment:
      Type: AWS::EC2::VPCGatewayAttachment
      Properties:
        InternetGatewayId: !Ref InternetGateway
        VpcId: !Ref VPC
  
  ....
  </code></pre>