diff --git a/plugins/cloud-costs/CHANGELOG.md b/plugins/cloud-costs/CHANGELOG.md index 01e60baa8..4884af67e 100644 --- a/plugins/cloud-costs/CHANGELOG.md +++ b/plugins/cloud-costs/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.1.6 +* Removing gcloud auth + ## 0.1.5 * Error handling for provider parameter diff --git a/plugins/cloud-costs/cloud-costs.sh b/plugins/cloud-costs/cloud-costs.sh index eda1fbfd5..71f13dfc0 100755 --- a/plugins/cloud-costs/cloud-costs.sh +++ b/plugins/cloud-costs/cloud-costs.sh @@ -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......" diff --git a/plugins/cloud-costs/version.txt b/plugins/cloud-costs/version.txt index def9a0154..a19223320 100644 --- a/plugins/cloud-costs/version.txt +++ b/plugins/cloud-costs/version.txt @@ -1 +1 @@ -0.1.5 \ No newline at end of file +0.1.6 \ No newline at end of file