99% of the changes were done automatically and can be ignored as I performed the upgrade
across each version using commands like terraform 0.12upgrade and
terraform 0.13upgrade.
This commit was separated out because it was to make Part 1 more
re-viewable.
However manual changes needed to be done
Only manual changes done:
Removal of the references to the null_resource. We don't use the depends_id like the removed modules in part 1 did.
terraform state mv all migrated resources from wpt-servers and cert-renewers to the resources now in compute.tf
Show Plan
```
module.cert-renewer-image.data.external.image: Reading...
module.wpt-server-tot-image.data.external.image: Reading...
module.cert-renewer-image.data.external.image: Read complete after 0s [id=-]
module.wpt-server-tot-image.data.external.image: Read complete after 0s [id=-]
module.wpt-live.data.google_dns_managed_zone.alt_host: Reading...
module.wpt-live.module.cert-renewer-container.data.google_compute_image.coreos: Reading...
module.wpt-live.google_compute_address.web-platform-tests-live-address: Refreshing state... [id=wpt-live/us-central1/wpt-tot-address]
module.wpt-live.google_storage_bucket.certificates: Refreshing state... [id=wpt-tot-certificates]
google_compute_network.default: Refreshing state... [id=wpt-live-network]
module.wpt-live.module.wpt-server-container.data.google_compute_image.coreos: Reading...
module.wpt-live.data.google_dns_managed_zone.host: Reading...
module.wpt-live.google_compute_http_health_check.default: Refreshing state... [id=wpt-tot-load-balancing-health-check]
module.wpt-live.google_compute_health_check.wpt_health_check: Refreshing state... [id=wpt-tot-wpt-servers]
module.wpt-live.data.google_dns_managed_zone.host: Read complete after 0s [id=projects/wpt-live/managedZones/wpt-live]
module.wpt-live.google_dns_record_set.host_subdomains: Refreshing state... [id=wpt-live/*.wpt.live./CNAME]
module.wpt-live.data.google_dns_managed_zone.alt_host: Read complete after 0s [id=projects/wpt-live/managedZones/not-wpt-live]
module.wpt-live.google_dns_record_set.host_nonexistent_subdomains: Refreshing state... [id=wpt-live/nonexistent.wpt.live./A]
module.wpt-live.google_dns_record_set.alt_host_nonexistent_subdomains: Refreshing state... [id=not-wpt-live/nonexistent.not-wpt.live./A]
module.wpt-live.google_dns_record_set.alt_host_subdomains: Refreshing state... [id=not-wpt-live/*.not-wpt.live./CNAME]
module.wpt-live.google_dns_record_set.alt_host_bare: Refreshing state... [id=not-wpt-live/not-wpt.live./A]
module.wpt-live.google_dns_record_set.host_bare: Refreshing state... [id=wpt-live/wpt.live./A]
module.wpt-live.module.wpt-server-container.data.google_compute_image.coreos: Read complete after 0s [id=projects/cos-cloud/global/images/cos-stable-85-13310-1209-17]
google_compute_subnetwork.default: Refreshing state... [id=us-central1/wpt-live-subnetwork]
module.wpt-live.google_compute_firewall.wpt-servers-default-ssh: Refreshing state... [id=wpt-tot-wpt-servers-vm-ssh]
module.wpt-live.google_compute_firewall.wpt-server-mig-health-check: Refreshing state... [id=wpt-tot-wpt-servers-vm-hc]
module.wpt-live.google_compute_firewall.default-lb-fw: Refreshing state... [id=wpt-tot-load-balancing-vm-service]
module.wpt-live.google_compute_target_pool.default: Refreshing state... [id=wpt-tot-load-balancing]
module.wpt-live.module.cert-renewer-container.data.google_compute_image.coreos: Read complete after 0s [id=projects/cos-cloud/global/images/cos-stable-85-13310-1209-17]
module.wpt-live.google_compute_instance_template.cert_renewers: Refreshing state... [id=default-20210315172233921500000001]
module.wpt-live.google_compute_instance_template.wpt_server: Refreshing state... [id=default-20210315172234903400000002]
module.wpt-live.google_compute_forwarding_rule.default[3]: Refreshing state... [id=wpt-tot-load-balancing-3]
module.wpt-live.google_compute_forwarding_rule.default[4]: Refreshing state... [id=wpt-tot-load-balancing-4]
module.wpt-live.google_compute_forwarding_rule.default[1]: Refreshing state... [id=wpt-tot-load-balancing-1]
module.wpt-live.google_compute_forwarding_rule.default[0]: Refreshing state... [id=wpt-tot-load-balancing-0]
module.wpt-live.google_compute_forwarding_rule.default[5]: Refreshing state... [id=wpt-tot-load-balancing-5]
module.wpt-live.google_compute_forwarding_rule.default[2]: Refreshing state... [id=wpt-tot-load-balancing-2]
module.wpt-live.google_compute_forwarding_rule.default[6]: Refreshing state... [id=wpt-tot-load-balancing-6]
module.wpt-live.google_compute_instance_group_manager.cert_renewers: Refreshing state... [id=wpt-live/us-central1-b/wpt-tot-cert-renewers]
module.wpt-live.google_compute_instance_group_manager.wpt_servers: Refreshing state... [id=wpt-live/us-central1-b/wpt-tot-wpt-servers]
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
```
99% of the changes were done automatically and can be ignored as I performed the upgrade across each version using commands like
terraform 0.12upgrade
andterraform 0.13upgrade
.This commit was separated out because it was to make Part 1 more re-viewable.
However manual changes needed to be done Only manual changes done:
terraform state mv
all migrated resources from wpt-servers and cert-renewers to the resources now in compute.tfShow Plan
``` module.cert-renewer-image.data.external.image: Reading... module.wpt-server-tot-image.data.external.image: Reading... module.cert-renewer-image.data.external.image: Read complete after 0s [id=-] module.wpt-server-tot-image.data.external.image: Read complete after 0s [id=-] module.wpt-live.data.google_dns_managed_zone.alt_host: Reading... module.wpt-live.module.cert-renewer-container.data.google_compute_image.coreos: Reading... module.wpt-live.google_compute_address.web-platform-tests-live-address: Refreshing state... [id=wpt-live/us-central1/wpt-tot-address] module.wpt-live.google_storage_bucket.certificates: Refreshing state... [id=wpt-tot-certificates] google_compute_network.default: Refreshing state... [id=wpt-live-network] module.wpt-live.module.wpt-server-container.data.google_compute_image.coreos: Reading... module.wpt-live.data.google_dns_managed_zone.host: Reading... module.wpt-live.google_compute_http_health_check.default: Refreshing state... [id=wpt-tot-load-balancing-health-check] module.wpt-live.google_compute_health_check.wpt_health_check: Refreshing state... [id=wpt-tot-wpt-servers] module.wpt-live.data.google_dns_managed_zone.host: Read complete after 0s [id=projects/wpt-live/managedZones/wpt-live] module.wpt-live.google_dns_record_set.host_subdomains: Refreshing state... [id=wpt-live/*.wpt.live./CNAME] module.wpt-live.data.google_dns_managed_zone.alt_host: Read complete after 0s [id=projects/wpt-live/managedZones/not-wpt-live] module.wpt-live.google_dns_record_set.host_nonexistent_subdomains: Refreshing state... [id=wpt-live/nonexistent.wpt.live./A] module.wpt-live.google_dns_record_set.alt_host_nonexistent_subdomains: Refreshing state... [id=not-wpt-live/nonexistent.not-wpt.live./A] module.wpt-live.google_dns_record_set.alt_host_subdomains: Refreshing state... [id=not-wpt-live/*.not-wpt.live./CNAME] module.wpt-live.google_dns_record_set.alt_host_bare: Refreshing state... [id=not-wpt-live/not-wpt.live./A] module.wpt-live.google_dns_record_set.host_bare: Refreshing state... [id=wpt-live/wpt.live./A] module.wpt-live.module.wpt-server-container.data.google_compute_image.coreos: Read complete after 0s [id=projects/cos-cloud/global/images/cos-stable-85-13310-1209-17] google_compute_subnetwork.default: Refreshing state... [id=us-central1/wpt-live-subnetwork] module.wpt-live.google_compute_firewall.wpt-servers-default-ssh: Refreshing state... [id=wpt-tot-wpt-servers-vm-ssh] module.wpt-live.google_compute_firewall.wpt-server-mig-health-check: Refreshing state... [id=wpt-tot-wpt-servers-vm-hc] module.wpt-live.google_compute_firewall.default-lb-fw: Refreshing state... [id=wpt-tot-load-balancing-vm-service] module.wpt-live.google_compute_target_pool.default: Refreshing state... [id=wpt-tot-load-balancing] module.wpt-live.module.cert-renewer-container.data.google_compute_image.coreos: Read complete after 0s [id=projects/cos-cloud/global/images/cos-stable-85-13310-1209-17] module.wpt-live.google_compute_instance_template.cert_renewers: Refreshing state... [id=default-20210315172233921500000001] module.wpt-live.google_compute_instance_template.wpt_server: Refreshing state... [id=default-20210315172234903400000002] module.wpt-live.google_compute_forwarding_rule.default[3]: Refreshing state... [id=wpt-tot-load-balancing-3] module.wpt-live.google_compute_forwarding_rule.default[4]: Refreshing state... [id=wpt-tot-load-balancing-4] module.wpt-live.google_compute_forwarding_rule.default[1]: Refreshing state... [id=wpt-tot-load-balancing-1] module.wpt-live.google_compute_forwarding_rule.default[0]: Refreshing state... [id=wpt-tot-load-balancing-0] module.wpt-live.google_compute_forwarding_rule.default[5]: Refreshing state... [id=wpt-tot-load-balancing-5] module.wpt-live.google_compute_forwarding_rule.default[2]: Refreshing state... [id=wpt-tot-load-balancing-2] module.wpt-live.google_compute_forwarding_rule.default[6]: Refreshing state... [id=wpt-tot-load-balancing-6] module.wpt-live.google_compute_instance_group_manager.cert_renewers: Refreshing state... [id=wpt-live/us-central1-b/wpt-tot-cert-renewers] module.wpt-live.google_compute_instance_group_manager.wpt_servers: Refreshing state... [id=wpt-live/us-central1-b/wpt-tot-wpt-servers] No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```More details: #61