This is the most important part of the settings for keeping your EC2 instance more secure.
It starts you out with a single port configuration for SSH (port 22).
SSH stands for Secure SHell and is how you connect to your server to issue it commands.
You want SSH to require a key and to only be accessible from your specific IP. Fortunately, AWS makes this extremely easy…
Under Source, Select My IP. Later on after our instance is up and running we will revisit security when we add SQL ports.
It will populate your IP address and the mask for you. Your IP address will need to be updated from time to time. This can be done in the Security Groups Section of the EC2 Dashboard.
Next we need to configure some additional ports for clients to access your site.