Skip to content

Commit

Permalink
Removed gcloud auth (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesouza authored Dec 8, 2023
1 parent 7ef9c91 commit 51597bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/cloud-costs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.6
* Removing gcloud auth

## 0.1.5
* Error handling for provider parameter

Expand Down
2 changes: 0 additions & 2 deletions plugins/cloud-costs/cloud-costs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ if [[ "$provider" == "gcp" ]]; then

echo "Google bigquey is running......"

gcloud auth activate-service-account --key-file=/.config/gcp-key.json --project=$projectname

sql="SELECT main.* FROM \`$table\` AS main LEFT JOIN UNNEST(labels) as labels WHERE labels.key = '$tagkey' AND labels.value = '$tagvalue' and usage_start_time >= '$initial_date_time' AND usage_start_time < '$final_date_time' order by usage_start_time desc"
bq --quiet --format=prettyjson query --max_rows=10000000 --nouse_legacy_sql "$sql" > /output/cloudcosts-tmp.json
echo "Google bigquey finished......"
Expand Down
2 changes: 1 addition & 1 deletion plugins/cloud-costs/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.5
0.1.6

0 comments on commit 51597bd

Please sign in to comment.