About securing your EC2 instances in the AWS cloud
When you deploy an EC2 instance in the AWS cloud, initially it is open to the entire Internet. Such a configuration is not recommended because it is not secure. To secure the EC2 instance and protect the integrity of the system, you need to configure an AWS Security Group.