Last active
July 18, 2020 15:08
-
-
Save mtnygard/0e1630300633aa5ea50da21fa33e0ecf to your computer and use it in GitHub Desktop.
Get gcloud instances in default project as /etc/hosts format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute instances list --format "table[no-heading](networkInterfaces[0].accessConfigs[0].natIP, name)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment