Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy option can't delete ingress #17

Open
marcoadasilvaa opened this issue Feb 7, 2022 · 3 comments
Open

Destroy option can't delete ingress #17

marcoadasilvaa opened this issue Feb 7, 2022 · 3 comments

Comments

@marcoadasilvaa
Copy link

marcoadasilvaa commented Feb 7, 2022

hello!

when you have a default region and zone configuration on project GCP and run terraform destroy, gcloud compute network-endpoint-groups delete take default region and not region select in terraform.tfvars

image

image

I will like to fix that

@murphye
Copy link
Owner

murphye commented Feb 7, 2022

@marcoadasilvaa Unfortunately Terraform cannot delete the ingressgateway directly because it is created automatically by GCP, not Terraform.

That being said, maybe an additional gcloud command is needed to set the correct region and zone from terraform.tfvars before performing the delete. This is something that is possible.

Thanks for reporting!

@murphye
Copy link
Owner

murphye commented Feb 7, 2022

Unfortunately, this is a problem... hashicorp/terraform#23679 Cannot do:

command = "gcloud compute network-endpoint-groups delete ingressgateway --zone=${var.zone} --quiet"

@murphye murphye closed this as completed Feb 7, 2022
@murphye
Copy link
Owner

murphye commented Feb 7, 2022

Reopening... found an issue... need to rethink

@murphye murphye reopened this Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants