You cannot connect to the instance. Which rule matters?
When SSH cannot connect to an instance, check its security group for a rule allowing SSH traffic. That is the concrete check for this symptom.
Source: AWS - https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html
