I'm trying to restrict access to my RDS SQL Server instance to my office IP and all resources in my VPC.
This is what I've tried:
MSSQL TCP 1433 xxx.xxx.xxx.xxx/32 Our Office IP
MSSQL TCP 1433 yyy.yy.y.y/16 Our AWS VPC (IPv4 CIDR)
This seems to be working but I have some doubts:
- I'm not confident this is the correct approach
This is one way of doing this. Its not perfect, but better then exposing your RDS to the entire internet. The better way would be to keep your RDS fully private (no public IP), and access is through VPN from your office, ssh tunnel if you need it for only testing and development.
Can the VPC IPv4 CIDR change on it's own
No it can't.