This rule ensures the protection of ELB application load balancer from deletion by enabling deletion protection.
Rule | ELB application load balancer deletion protection should be enabled |
Framework | CISA-cyber-essentials |
Severity | ✔ High |
Rule Description:
The deletion protection feature of the AWS Elastic Load Balancer (ELB) application load balancer should be enabled for CISA-cyber-essentials. This rule ensures that accidental deletion or modification of the load balancer is prevented, providing an extra layer of security and preventing mission-critical service disruptions.
Troubleshooting Steps:
If deletion protection is not enabled for the ELB application load balancer, it can be manually enabled using the AWS Management Console or the AWS Command Line Interface (CLI). Follow the steps below to troubleshoot:
Check Load Balancers:
Verify Deletion Protection Status:
Code Example:
If deletion protection is not enabled for the ELB application load balancer, you can use the AWS CLI to enable it. Execute the following command in your terminal or command prompt:
aws elbv2 modify-load-balancer-attributes --load-balancer-arn <load_balancer_arn> --attributes Key=deletion_protection.enabled,Value=true
Make sure to replace
<load_balancer_arn>
with the actual Amazon Resource Name (ARN) of your ELB application load balancer that needs deletion protection.Remediation Steps:
To enable deletion protection for CISA-cyber-essentials' ELB application load balancer, follow these step-by-step instructions:
By following these steps, you have successfully enabled deletion protection for the ELB application load balancer associated with CISA-cyber-essentials, providing an additional layer of security to prevent accidental deletion or modification.