I'm trying to connect a route table and an internet gateway in the AWS VPC dashboard.
It's serving me this error:
route table and network gateway belong to different networks
Specifically, I'm trying to associate the internet gateway to the route table with destination 0.0.0.0/0 and target as the internet gateway id.
To speak more broadly about the setup I'm trying to achieve, I'd like to have a VPC with two subnets, one for us-east-2a and the other for us-east-2b. I'd like to connect those subnets to a route table that is connected to an internet gateway and then put the VPC in a security group.
I'd like my AWS EC2 instance to be available to only a specific list of IP addresses.