#!/bin/bash
/opt/google-cloud-sdk/bin/gcloud compute instances delete-access-config loadbalancer01 \
--access-config-name "External NAT" --zone europe-west1-b
/opt/google-cloud-sdk/bin/gcloud compute instances add-access-config loadbalancer02 \
--access-config-name "External NAT" --address myExternalIPAddress --zone europe-west1-c
1st problem: there is a mistake in the documentation. According to the documentation i should have :
--access-config-name "external-nat"
But instead i must set : --access-config-name "External NAT"
2nd problem: when i run the second command i have the following error:
ERROR: (gcloud.compute.instances.add-access-config) Some requests did not succeed:
- At most one access config currently supported.
Is there somebody that have already detach an ip and reattach it to another instance by command line ?
Maybe i miss something in the documentation :'(
Thanks.
P Please consider the environment - do you really need to print this email?
If you received this communication by mistake, please don't forward it to anyone else (it may contain confidential or privileged information), please erase all copies of it, including all attachments, and please let the sender know it went to the wrong person. Thanks. The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.
P Please consider the environment - do you really need to print this email?
If you received this communication by mistake, please don't forward it to anyone else (it may contain confidential or privileged information), please erase all copies of it, including all attachments, and please let the sender know it went to the wrong person. Thanks. The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.