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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
18 changes: 16 additions & 2 deletions environment
Original file line number Diff line number Diff line change
Expand Up @@ -333,19 +333,33 @@ _hibernate() {
make -C lambdas && {
cd terraform &&
make validate
terraform destroy -target aws_elasticsearch_domain.index && {
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