How to update Google Cloud DNS with ephemeral IP for an instance

前端 未结 3 1723
清酒与你
清酒与你 2020-12-30 10:00

I have couple of instances on GCE that I don\'t really need static addresses for, but I still need to make them accessible via dns name. Since ephemeral external ip addresse

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 10:11

    It's been a while since you've posted this question, but i'll post my answer here for future reference.

    I've had a similar need and I didn't want to use gcloud CLI.

    I've created a simple python script that does pretty much the same as the bash script above does, but uses Apache Libcloud and Google Cloud API credentials (service account and key).

    You can find the code in GitHub.

提交回复
热议问题