diff --git a/common/stock/terraform_sync.yaml.tmpl b/common/stock/terraform_sync.yaml.tmpl index 958d522..f23cdbf 100644 --- a/common/stock/terraform_sync.yaml.tmpl +++ b/common/stock/terraform_sync.yaml.tmpl @@ -11,7 +11,7 @@ groups: alerttype: stock alertgroup: terraform_applier_module annotations: - summary: "Terraform module {{ $labels.module }} in {{ $labels.namespace }} encountered errors during last terraform run" + summary: "Terraform module {{ $labels.module }} in {{ $labels.namespace }} encountered an error" description: | Some resources may not have been applied. to check status run following command: @@ -23,4 +23,5 @@ groups: If module is using kube backend and the state is locked you can remove the lock with the following command: `kubectl --context={{ $labels.kubernetes_cluster }} -n {{ $labels.namespace }} patch lease lock-tfstate-default-{{ $labels.module }} --type=json -p='[{"op":"remove","path":"/spec/holderIdentity"}]'` dashboard: <https://terraform-applier-system.$ENVIRONMENT.$PROVIDER.uw.systems/#{{$labels.namespace}}-{{$labels.module}}"|link> - logs: https://grafana.$ENVIRONMENT.aws.uw.systems/explore?left=["now-1h","now","Loki",{"expr":"{kubernetes_cluster=\"{{$labels.kubernetes_cluster}}\",kubernetes_namespace=\"{{$labels.kubernetes_namespace}}\"} |=\"{{$labels.module}}\""}] + logs: 'https://grafana.$ENVIRONMENT.aws.uw.systems/explore?left=["now-1h","now","Loki",{"expr":"{kubernetes_cluster=\"{{$labels.kubernetes_cluster}}\",kubernetes_namespace=\"{{$labels.kubernetes_namespace}}\"} |=\"{{$labels.module}}\""}]' + tf_applier: "https://terraform-applier-system.$ENVIRONMENT.$PROVIDER.uw.systems/"