From python to running instance on google cloud platform

You have to make the authentication key first Authenticate as a service account | Google Cloud

Using the Cloud Client Library for Python|Compute Engine documentation|  Google Cloud

python3 -m pip install --upgrade google-api-python-client

python-docs-samples/create_instance.py at master · GoogleCloudPlatform/python-docs-samples

I used this github code for the operation test __ * It is recommended to comment out because it costs an instance fee if you move it as it is. __

Remarks

--The JSON format key generation is easy for the browser, and you can move the file with the SSH client (I moved it with RLogin) --It wasn't recognized for a long time because of the problem related to authority and the command typed by the project name. That's no surprise.

with this You can launch an instance of GCP from your Raspberry Pi at home! !! !! Yay

Recommended Posts

From python to running instance on google cloud platform
Try running Distributed TensorFlow on Google Cloud Platform
Update Python on Mac from 2 to 3
Build an Ubuntu python development environment on Google Cloud Platform
Migrate Django applications running on Python 2.7 to Python 3.5
How to update Google Sheets from Python
Things to note when running Python on EC2 from AWS Lambda
Connecting from python to MySQL on CentOS 6.4
Use Google Cloud Vision API from Python
How to connect to Cloud Firestore from Google Cloud Functions with python code
How to connect to Cloud SQL PostgreSQL on Google Cloud Platform from a local environment with Java
Everything from building a Python environment to running it on Windows
Copy data from Amazon S3 to Google Cloud Storage with Python (boto)
Changes from Python 3.0 to Python 3.5
[IBM Cloud] I tried to access the Db2 on Cloud table from Cloud Funtions (python)
From buying a computer to running a program with python
From running MINST on TensorFlow 2.0 to visualization on TensorBoard (2019 edition)
How to use Django on Google App Engine / Python
Display the weather forecast on M5Stack + Google Cloud Platform
Try running a Schedule to start and stop an instance on AWS Lambda (Python)
Post from Python to Slack
Cheating from PHP to Python
Anaconda updated from 4.2.0 to 4.3.0 (python3.5 updated to python3.6)
Update python on Mac to 3.7-> 3.8
Switch from python2.7 to python3.6 (centos7)
Connect to sqlite from python
[GCP] A memorandum when running a Python program on Cloud Functions
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
Let's use Watson from Python! --How to use Developer Cloud Python SDK
Connect Raspberry Pi to Alibaba Cloud IoT Platform with Python
Call Matlab from Python to optimize
Python 3.6 on Windows ... and to Xamarin.
How to install OpenCV on Cloud9 and run it in Python
How to rebuild python environment from pyenv on Mac environment (El Capitan)
A story about switching a personally developed Web service from a rental server to GCP (Google Cloud Platform)
Create folders from '01' to '12' with python
Introduction to Python Hands On Part 1
Stream speech recognition using Google Cloud Speech gRPC API on python3 on Mac!
Notes on using MeCab from Python
Post from python to facebook timeline
[Lambda] [Python] Post to Twitter from Lambda!
Post a message from IBM Cloud Functions to Slack in Python
Forcibly use Google Translate from python
Simple code to call a python program from Javascript on EC2
Connect to utf8mb4 database from python
Using Cloud Storage from Python3 (Introduction)
Python (from first time to execution)
Post images from Python to Tumblr
What to do if Insecure Platform Warning appears when running Python
[Python + heroku] From the state without Python to displaying something on heroku (Part 1)
Notes on accessing dashDB from python
Update applications running on Django 1.7 to Django 1.8
How to access wikipedia from python
Python to switch from another language
Selenium and python to open google
[Python + heroku] From the state without Python to displaying something on heroku (Part 2)
How to update the python version of Cloud Shell on GCP
Steps to install python3 on mac
Use Google Analytics API from Python
Call C / C ++ from Python on Mac
Did not change from Python 2 to 3