Skip to content

NashTech-Labs/create-disk-from-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisite

  • Terraform
  • gcloud cli(recommended)

Setup gcloud-cli

  • sudo snap install google-cloud-cli
  • gcloud auth login
  • gcloud config set project <PROJECT-ID>
  • gcloud auth activate-service-account --key-file terraform/<service-account-json-key>.json

Create a service account

Create a set of public and private key and confgure it with Compute Engine -> Metadata

  • Create a ssh key
  • Copy pub key and upload to google cloud > compute engine > metadata section
  • ssh-keygen -f ~/.ssh/known_hosts

How to Run

  • terraform init
  • terraform fmt
  • terraform plan
  • terraform apply --auto-approve
  • terraform destroy --auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors