canada-ca / accelerators_accelerateurs-gcp

[GCP] Tools and templates to accelerate GC service delivery. Outils et modèles pour accélérer la prestation de services du GC.
MIT License
10 stars 8 forks source link

Document terraform destroy of entire guardrails including gcloud delete for seed project, billing and TF service account - to reset the organization #65

Open fmichaelobrien opened 1 year ago

fmichaelobrien commented 1 year ago

gz- seed project and service account remain -as they were outside of terraform - a sh script will be required

Screen Shot 2022-12-14 at 12 15 29 PM
root_@cloudshell:~/accelerators_accelerateurs-gcp/deployment-templates/Terraform/guardrails/1-guardrails (tgz-seed-project)$ terraform destroy -var-file variables.tfvar

module.administration.module.project-factory.random_id.random_project_id_suffix: Destroying... [id=7yc]
module.administration.module.project-factory.random_id.random_project_id_suffix: Destruction complete after 0s

Destroy complete! Resources: 36 destroyed.
root_@cloudshell:~/accelerators_accelerateurs-gcp/deployment-templates/Terraform/guardrails/1-guardrails (tgz-seed-project)$
fmichaelobrien commented 1 year ago

before

Screen Shot 2022-12-14 at 12 18 55 PM
fmichaelobrien commented 1 year ago

after - note deleted projects will hold resources for 30d - billing must me manually removed to free up quota

gz- seed project and service account remain -as they were outside of terraform

Screen Shot 2022-12-14 at 12 20 06 PM