This whitepaper is for historical reference only. Some content might be outdated and some links might not be available.
Amazon EC2 with Auto Scaling (BP7)
Another way to mitigate both infrastructure and application layer attacks is to operate at scale. If you have web applications, you can use load balancers to distribute traffic to a number of Amazon EC2 instances that are overprovisioned or configured to automatically scale. These instances can handle sudden traffic surges that occur for any reason, including a flash crowd or an application layer DDoS attack. You can set Amazon CloudWatch alarms to initiate Auto Scaling to automatically scale the size of your Amazon EC2 fleet in response to events that you define, such as CPU, RAM, Network I/O, and even custom metrics.
This approach protects application availability when there’s an unexpected increase in request volume. When using Amazon CloudFront, Application Load Balancer, Classic Load Balancers, or Network Load Balancer with your application, TLS negotiation is handled by the distribution (Amazon CloudFront) or by the load balancer. These features help protect your instances from being impacted by TLS-based attacks by scaling to handle legitimate requests and TLS abuse attacks.
For more information about using Amazon CloudWatch to invoke Auto Scaling, refer to Monitoring Amazon CloudWatch metrics for your Auto Scaling groups and instances.
Amazon EC2 provides resizable compute capacity so that you can quickly scale up or down as requirements change. You can scale horizontally by automatically adding instances to your application by scaling the size of your Amazon EC2 Auto Scaling group, and you can scale vertically by using larger EC2 instance types.
By using Amazon RDS Proxy, you can allow your applications to pool and share database connections to improve their ability to scale and handle unpredictable surges in database traffic. You can also enable storage auto-scaling for an Amazon RDS database instance. See Managing capacity automatically with Amazon RDS storage autoscaling for more information.