Compressed pre-formatted blank ext4 image files that can be used to initialize GCP disks
Follow this guide from Google
https://cloud.google.com/compute/docs/images/import-existing-image#create_image_file
- Authenticate against project
gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
gcloud config set project p-atlassian-03-ba3a0b
-
Upload file to GCS
-
Create an image from the compressed img file.
gcloud compute images create blank-ext4-200gb --source-uri gs://[YOUR_BUCKET_NAME]/blank-ext4-200gb.tar.gz
Once you have imported the image to your project it's easy to use it as a base when you create a disk.
https://www.terraform.io/docs/providers/google/r/compute_disk.html