│ Resource module.webapp.google_compute_address.static_ip[0] has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid
│ this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.
```
However, sometimes it needs to be deleted. If a resource is created with `prevent_deletion`,
Terraform will block any attempt to delete this resource through Terraform commands.
As a result, if you need to remove such a resource from your Terraform configuration,
you must manually delete the resource outside of Terraform before running `terraform apply` again.
The steps below shows how it can be achieved.
## Steps to Resolve
First, delete the resources that use the IP address. In common case it is Cloud Router with the
default name `webapp-ip-router`. If not sure, check the list of routers using `gcloud` command: