Ensure that deletion protection is enabled for Application Load Balancer to prevent accidental deletion.
Rule | Application Load Balancer deletion protection should be enabled |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description
The rule requires the Application Load Balancer (ALB) deletion protection to be enabled for AWS Foundational Security Best Practices. Deletion protection ensures that the ALB cannot be accidentally or maliciously deleted. By enabling deletion protection, you add an extra layer of security to your ALB infrastructure and prevent any unauthorized modifications.
Troubleshooting Steps
No troubleshooting steps required for this rule.
Remediation
To enable deletion protection for your Application Load Balancer, follow the step-by-step guide below:
CLI Command
If you prefer to use the AWS Command Line Interface (CLI) to enable deletion protection for your Application Load Balancer, follow the steps below:
aws elbv2 modify-load-balancer-attributes --load-balancer-arn <ALB_ARN> --attributes Key=deletion_protection.enabled,Value=true
Make sure to replace
<ALB_ARN>
with the actual ARN (Amazon Resource Name) of your Application Load Balancer.Conclusion
Enabling deletion protection for your Application Load Balancer adds an extra layer of security to prevent accidental or malicious deletions. By following the provided step-by-step guide or using the CLI command, you can easily enable deletion protection and enhance the security posture of your ALB infrastructure.