Question: how to attach igw to vpc?
Answer: Navigate to the AWS console -> Services. Under the Networking & Content Delivery section, choose VPC. Navigate to Virtual Private Cloud -> Internet Gateways. Click Create Internet Gateway. Type a name in the Name tag text box and click Yes, Create. ...  Click Attach to VPC.