forked from kaytu-io/kaytu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kaytu-io:main' into main
- Loading branch information
Showing
3 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters