cds-snc / dns

DNS Configuration for domains managed by CDS
18 stars 15 forks source link

chore: remove alpha DNS records #366

Closed patheard closed 6 months ago

patheard commented 6 months ago

Summary

Remove alpha DNS records that are no longer used.

github-actions[bot] commented 6 months ago

DNS

✅   Terraform Init: success ✅   Terraform Validate: success ✅   Terraform Format: success ✅   Terraform Plan: success ✅   Conftest: success

⚠️   Warning: resources will be destroyed by this change!

Plan: 0 to add, 0 to change, 8 to destroy
Show summary | CHANGE | NAME | |--------|---------------------------------------------------------------------------| | delete | `aws_route53_record.claim-tax-benefits-alpha-canada-ca-CNAME` | | | `aws_route53_record.claim-tax-benefits-alpha-canada-ca-aws-dns-CNAME` | | | `aws_route53_record.covid-benefits-alpha-canada-ca-CNAME` | | | `aws_route53_record.covid-benefits-alpha-canada-ca-TXT` | | | `aws_route53_record.covid-prestations-alpha-canada-ca-CNAME` | | | `aws_route53_record.covid-prestations-alpha-canada-ca-TXT` | | | `aws_route53_record.drupal-pilot-cer-alpha-canada-ca-A` | | | `aws_route53_record.reclamer-des-avantages-fiscaux-alpha-canada-ca-CNAME` |
Show plan ```terraform Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # aws_route53_record.claim-tax-benefits-alpha-canada-ca-CNAME will be destroyed # (because aws_route53_record.claim-tax-benefits-alpha-canada-ca-CNAME is not in configuration) - resource "aws_route53_record" "claim-tax-benefits-alpha-canada-ca-CNAME" { - fqdn = "claim-tax-benefits.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_claim-tax-benefits.alpha.canada.ca_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "claim-tax-benefits.alpha.canada.ca" -> null - records = [ - "ctb-load-balancer-628344302.ca-central-1.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.claim-tax-benefits-alpha-canada-ca-aws-dns-CNAME will be destroyed # (because aws_route53_record.claim-tax-benefits-alpha-canada-ca-aws-dns-CNAME is not in configuration) - resource "aws_route53_record" "claim-tax-benefits-alpha-canada-ca-aws-dns-CNAME" { - fqdn = "_fdae793703c2c7c9c33369c921f965b4.claim-tax-benefits.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL__fdae793703c2c7c9c33369c921f965b4.claim-tax-benefits.alpha.canada.ca._CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "_fdae793703c2c7c9c33369c921f965b4.claim-tax-benefits.alpha.canada.ca" -> null - records = [ - "_c2f4df6e286fd394d49a69aa49c86236.kirrbxfjtw.acm-validations.aws.", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.covid-benefits-alpha-canada-ca-CNAME will be destroyed # (because aws_route53_record.covid-benefits-alpha-canada-ca-CNAME is not in configuration) - resource "aws_route53_record" "covid-benefits-alpha-canada-ca-CNAME" { - fqdn = "covid-benefits.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_covid-benefits.alpha.canada.ca_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "covid-benefits.alpha.canada.ca" -> null - records = [ - "espbdtscb19appservice.azurewebsites.net", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.covid-benefits-alpha-canada-ca-TXT will be destroyed # (because aws_route53_record.covid-benefits-alpha-canada-ca-TXT is not in configuration) - resource "aws_route53_record" "covid-benefits-alpha-canada-ca-TXT" { - fqdn = "asuid.covid-benefits.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_asuid.covid-benefits.alpha.canada.ca_TXT" -> null - multivalue_answer_routing_policy = false -> null - name = "asuid.covid-benefits.alpha.canada.ca" -> null - records = [ - "5EC538F6E00B1480F70188C0174751749BEB5ACD0E4400FE3A85E48FA6CFC715", ] -> null - ttl = 3600 -> null - type = "TXT" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.covid-prestations-alpha-canada-ca-CNAME will be destroyed # (because aws_route53_record.covid-prestations-alpha-canada-ca-CNAME is not in configuration) - resource "aws_route53_record" "covid-prestations-alpha-canada-ca-CNAME" { - fqdn = "covid-prestations.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_covid-prestations.alpha.canada.ca_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "covid-prestations.alpha.canada.ca" -> null - records = [ - "espbdtscb19appservice.azurewebsites.net", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.covid-prestations-alpha-canada-ca-TXT will be destroyed # (because aws_route53_record.covid-prestations-alpha-canada-ca-TXT is not in configuration) - resource "aws_route53_record" "covid-prestations-alpha-canada-ca-TXT" { - fqdn = "asuid.covid-prestations.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_asuid.covid-prestations.alpha.canada.ca_TXT" -> null - multivalue_answer_routing_policy = false -> null - name = "asuid.covid-prestations.alpha.canada.ca" -> null - records = [ - "5EC538F6E00B1480F70188C0174751749BEB5ACD0E4400FE3A85E48FA6CFC715", ] -> null - ttl = 3600 -> null - type = "TXT" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.drupal-pilot-cer-alpha-canada-ca-A will be destroyed # (because aws_route53_record.drupal-pilot-cer-alpha-canada-ca-A is not in configuration) - resource "aws_route53_record" "drupal-pilot-cer-alpha-canada-ca-A" { - fqdn = "drupal-pilot.cer.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_drupal-pilot.cer.alpha.canada.ca_A" -> null - multivalue_answer_routing_policy = false -> null - name = "drupal-pilot.cer.alpha.canada.ca" -> null - records = [ - "52.237.15.42", ] -> null - ttl = 300 -> null - type = "A" -> null - zone_id = "Z33C47YI9EN8XL" -> null } # aws_route53_record.reclamer-des-avantages-fiscaux-alpha-canada-ca-CNAME will be destroyed # (because aws_route53_record.reclamer-des-avantages-fiscaux-alpha-canada-ca-CNAME is not in configuration) - resource "aws_route53_record" "reclamer-des-avantages-fiscaux-alpha-canada-ca-CNAME" { - fqdn = "reclamer-des-avantages-fiscaux.alpha.canada.ca" -> null - id = "Z33C47YI9EN8XL_reclamer-des-avantages-fiscaux.alpha.canada.ca_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "reclamer-des-avantages-fiscaux.alpha.canada.ca" -> null - records = [ - "ctb-load-balancer-628344302.ca-central-1.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z33C47YI9EN8XL" -> null } Plan: 0 to add, 0 to change, 8 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: plan.tfplan To perform exactly these actions, run the following command to apply: terraform apply "plan.tfplan" ```
Show Conftest results ```sh WARN - plan.json - main - Missing Common Tags: ["aws_route53_zone.alpha-canada-ca-public"] WARN - plan.json - main - Missing Common Tags: ["aws_route53_zone.cds-snc-ca-public"] WARN - plan.json - main - Missing Common Tags: ["aws_route53_zone.notification-canada-ca-public"] WARN - plan.json - main - Missing Common Tags: ["aws_route53_zone.platform-canada-ca-public"] 23 tests, 19 passed, 4 warnings, 0 failures, 0 exceptions ```