When you create a Lightsail/EC2 instance, some network ports are open by default using AWS cloud firewall. This page explains how to set up a basic IPv4/IPv6 iptables firewall for Amazon Linux AMI for better control and security
Get bigger instances and we will deal with it. Lmao.
Learn how to use AWS SDK (boto) for Python along with Ansible to to create security keys for EC2 and more