Skip to content

khushbuparakh/gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

https://medium.com/@khushbu.parakh/create-instances-in-google-cloud-with-private-image-328409916744

Bucket Name: Name of the bucket you want

Subnetwork: Subnetwork you want your instance to be in.

Source_file_name: Path to your private image.

Destination_blob_name: Any name needs to in gzip format.

Projectid: Your project id.

Zone: You want to create your instance in.

Machine Type: Standard machine type with 4 vCPUs and 15 GB of memory. (n1-standard4)

Instance-name: Name of your instance


Before running the script edit the network details in script. To whatever network you have in your cloud. Please make sure you do

pip install

  • google-api-python-client
  • oauth2client
  • google-auth
  • google-auth-httplib2
  • google-cloud-storage
  • google-resumable-media

To run the script

python instance.py  --bucket_name somebucketname --subnetwork somesubnework --source_file_name path/gcp_controller.tar.gz  --destination_blob_name gcp_controller.tar.gz --project projectid --zone zonename --machine-type n1-standard4 --instance-name
test-instances

Please let me know if you face any issue. Happy to assist contact me https://twitter.com/cokencode

About

Creating Instances with private image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages