The command:
gcloud compute forwarding-rules create myproxyforwardrule --ip-protocol TCP \
--ports 80-443 --target-instance proxygorod --region us-central1
as well as:
gcloud compute forwarding-rules create myproxyforwardrule --ip-protocol TCP \
--ports 80-443 --target-instance https://www.googleapis.com/compute/v1/projects/<project_name>/zones/us-central1-c/targetInstances/proxygorod \
--region https://www.googleapis.com/compute/v1/projects/<project_name>/regions/us-central1
Both return:
ERROR: (gcloud.compute.forwarding-rules.create) Could not fetch resource:
- The resource 'projects/<project_name>/zones/us-central1-c/targetInstances/proxygorod' was not found
Region: us-central1-c
Instace: proxygorod
f1-micro
What may be wrong?
What I have tried:
gcloud init
gcloud auth login
- Renaming instance