How to protect application and server if hosted in Pubic subnet in AWS VPC and traffic directly routing to server via DNS entry to server Public IP. currently only security group which protect inbound traffic, what other aws service I can use to protect in this type deployements.
Currently I have only security group which attached with EC2, what another security service we can apply to EC2.
2
Answers
Well you can add many AWS security services but a simple straightforward solutions would would be a load balancer.
Instead of exposing your ec2 directly expose it through application load balancer. For the world its will your ALB exposed, this can also help with load balancing as your workload increases with time.
The type of protection really depends on your requirements. That said, there are a few general measures you can take:
First, remove as much attack surface as you can:
Then, set up proactive security measures:
Finally, review your architecture using the Well-Architected Framework.