-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALB deletion protection #542
Conversation
@@ -7,11 +7,12 @@ BACKEND_CONFIG_FILE="dev.s3.tfbackend" | |||
|
|||
sed -i.bak 's/force_destroy = false/force_destroy = true/g' infra/modules/service/access-logs.tf | |||
sed -i.bak 's/force_destroy = false/force_destroy = true/g' infra/modules/storage/main.tf | |||
sed -i.bak 's/enable_deletion_protection = var.is_temp_environment/enable_deletion_protection = false/g' infra/modules/service/load-balancer.tf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you just copy pasted my snippet, but you have to make sure that the line you are replacing is the same as the actual line. looks like you named the variable is_temporary rather than is_temp_environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Left some final nits/cleanup but feel free to merge on your own after you resolve those.
Co-authored-by: Loren Yu <loren@navapbc.com>
Prevent ALB Deletion for security compliance
Resolves #161
Changes
Use the
terraform.workspace
name to determine if this is a test environment and therefore the alb should not get deletion protection, otherwise, enable deletion protection. Terratest prefixes workspaces it createst with "t-<unique_id>" therefore we should enable deletion protection for elbs in all workspaces that do not start witht-
Addresses:
ELB.6 check: NIST-800 53