I had an EC2 instance running an application.

Everything looked fine.

Then I changed one Security Group rule.

Suddenly…

the application couldn't reach the database.