AWS VPC

Virtual Private Cloud

Licensing

Virtual private cloud (VPC) — A virtual network dedicated to the AWS account.

There is no additional charge for using Amazon VPC. You pay the standard rates for the instances and other Amazon EC2 features that you use. There are charges for using a Site-to-Site VPN connection, PrivateLink, Traffic Mirroring, and a NAT gateway.  

https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html 

EC2 and RDS instances can be part of a VPC along with aby of the supporting components listed below...

https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html 
https://docs.aws.amazon.com/vpc/latest/userguide/vpn-connections.html 

Monitoring

VPC Contents

Use these queries to help you understand the AWS components in your VPC...

EC2

vpc="vpc-xxxxxxxxxxxxx

aws ec2 describe-internet-gateways --filters 'Name=attachment.vpc-id,Values='$vpc --output json | grep InternetGatewayId

aws ec2 describe-subnets --filters 'Name=vpc-id,Values='$vpc --output json | grep SubnetId

aws ec2 describe-route-tables --filters 'Name=vpc-id,Values='$vpc --output json | grep RouteTableId

aws ec2 describe-network-acls --filters 'Name=vpc-id,Values='$vpc --output json | grep NetworkAclId

aws ec2 describe-vpc-peering-connections --filters 'Name=requester-vpc-info.vpc-id,Values='$vpc --output json | grep VpcPeeringConnectionId

aws ec2 describe-vpc-endpoints --filters 'Name=vpc-id,Values='$vpc --output json | grep VpcEndpointId

aws ec2 describe-nat-gateways --filter 'Name=vpc-id,Values='$vpc --output json | grep NatGatewayId

aws ec2 describe-security-groups --filters 'Name=vpc-id,Values='$vpc --output json | grep GroupId

aws ec2 describe-instances --filters 'Name=vpc-id,Values='$vpc --output json | grep InstanceId

aws ec2 describe-vpn-connections --filters 'Name=vpc-id,Values='$vpc--output json  | grep VpnConnectionId

aws ec2 describe-vpn-gateways --filters 'Name=attachment.vpc-id,Values='$vpc --output json | grep VpnGatewayId

aws ec2 describe-network-interfaces --filters 'Name=vpc-id,Values='$vpc --output json | grep NetworkInterfaceId

Delete VPC

Important Note: if your VPC is part of a CloudFormation Stack then you should delete the VPC via CloudFormation, not directly

aws ec2 delete-vpc --vpc-id vpc-xxxxxxxxxxx

Bibliography