From 042e630f05290dabc7053ddd05cb7aa2079be40a Mon Sep 17 00:00:00 2001 From: artaasadi Date: Fri, 5 Jul 2024 14:37:32 +0200 Subject: [PATCH] fix: add document for gcp usage --- docs/how-to-gcp.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/how-to-gcp.md diff --git a/docs/how-to-gcp.md b/docs/how-to-gcp.md new file mode 100644 index 0000000..60948f8 --- /dev/null +++ b/docs/how-to-gcp.md @@ -0,0 +1,32 @@ +This document explains how to optimize gcp compute instances + +## 1. Have the following Software Installed + +1. Kaytu CLI + + +## 2. Login to kaytu CLI +`kaytu login` + +Install CLI plugin: + + kaytu plugin install gcp + + +## 4. Create a Service Account + +Create a service account with the following roles: +1. Cloud Billing +2. Compute Engine + +## 5. Create Key and store credentials file + +## 6. Export credentials file path + +Export credentials file path in the environment variable + + export GOOGLE_APPLICATION_CREDENTIALS="/path/to/credentials.json" + +## 7. Run optimization Check + +> kaytu optimize compute-instance