Skip to content
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

Fix: CloudWatch alarms left triggered after _hibernate function is used (#6702) #6703

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions environment
Original file line number Diff line number Diff line change
Expand Up @@ -332,20 +332,34 @@ _hibernate() {
if test -z "$azul_terraform_component"; then
make -C lambdas && {
cd terraform &&
make validate
terraform destroy -target aws_elasticsearch_domain.index && {
make validate && {
terraform destroy \
-target aws_cloudwatch_metric_alarm.indexercachehealth \
-target aws_cloudwatch_metric_alarm.servicecachehealth \
-target aws_elasticsearch_domain.index
} && {
cd shared &&
_select "$AZUL_DEPLOYMENT_STAGE.shared" &&
make validate &&
terraform destroy \
-target aws_cloudwatch_metric_alarm.clamscan \
-target aws_cloudwatch_metric_alarm.freshclam
} && {
cd gitlab &&
_select "$AZUL_DEPLOYMENT_STAGE.gitlab" &&
make validate &&
terraform destroy \
-target aws_cloudwatch_metric_alarm.gitlab_cpu_use \
-target aws_cloudwatch_metric_alarm.gitlab_data_disk_use \
-target aws_cloudwatch_metric_alarm.gitlab_root_disk_use \
-target aws_ec2_client_vpn_endpoint.gitlab \
-target aws_instance.gitlab \
-target aws_nat_gateway.gitlab_0 \
-target aws_nat_gateway.gitlab_1 \
-target aws_lb.gitlab_nlb \
-target aws_lb.gitlab_alb
}
}
}
else
echo "Must have main component selected"
return 1
Expand Down
Loading