This rule ensures that the deletion protection is enabled for ELB application load balancers.
Rule | ELB application load balancer deletion protection should be enabled |
Framework | FedRAMP Low Revision 4 |
Severity | ✔ High |
Rule Description:
The ELB (Elastic Load Balancer) application load balancer deletion protection must be enabled for FedRAMP (Federal Risk and Authorization Management Program) Low Revision 4. This is a security measure to prevent accidental deletion or modification of critical load balancers that are used in the infrastructure.
Troubleshooting Steps:
If deletion protection is not enabled for the ELB application load balancer, follow these troubleshooting steps to enable it:
Necessary Codes:
If deletion protection is not enabled, you can use the following AWS CLI command to enable it:
aws elbv2 modify-load-balancer-attributes --load-balancer-arn <load_balancer_arn> --attributes Key=deletion_protection.enabled,Value=true
Note: Replace
<load_balancer_arn>
with the ARN (Amazon Resource Name) of the load balancer you want to enable deletion protection for.Step-by-Step Guide for Remediation:
Follow these steps to enable deletion protection for an ELB application load balancer:
Alternatively, you can use the AWS CLI command mentioned earlier:
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 ARN of the load balancer you want to enable deletion protection for.Enabling deletion protection ensures that accidental deletion or modification of the load balancer is prohibited, providing an extra layer of security for the infrastructure.