Skip to content

Commit

Permalink
Merge pull request #1076 from DFE-Digital/1805-delete-unnecessary-ssl…
Browse files Browse the repository at this point in the history
…-certificates

Statuscake SSL alert removed for preprod
  • Loading branch information
VenkataChalla554 authored May 14, 2024
2 parents 67a943c + d7b2a4f commit 9d7a48e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions terraform/aks/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terraform/aks/statuscake.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "statuscake" {
}

resource "statuscake_ssl_check" "domain-alert" {
for_each = var.statuscake_alerts
for_each = { for k, v in var.statuscake_alerts : k => v if can(v.ssl_domain) }

check_interval = 3600 # Check once per hour
contact_groups = each.value.contact_group
Expand Down
3 changes: 1 addition & 2 deletions terraform/aks/workspace_variables/preproduction.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"https://preprod.find-a-lost-trn.education.gov.uk/health/all",
"https://find-a-lost-trn-preproduction.test.teacherservices.cloud/health/all"
],
"contact_group": [288912],
"ssl_domain": "https://preprod.find-a-lost-trn.education.gov.uk"
"contact_group": [288912]
}
},
"inf_vault_name": "s189t01-faltrn-pp-inf-kv",
Expand Down

0 comments on commit 9d7a48e

Please sign in to comment.