Can’t access SSH after enable UFW in EC2 AWS?

May be you enabled UFW? You may be trying to enable the ufw or trying to give access to the apache server and you stuck into a disabled ssh access, Hi-Fi, I know this may be very frustrating when you are trying to install everything related to your project and this shitty thing happen to you, But no worries, I am here to get rid of that situation.

there are few steps, to get out of this problem.

1. Stop your instance

This is very simple task, you can stop instance by right click on the instance -> instance state -> stop