fix(gcp)!: Only list enabled Services#5557
Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom Dec 12, 2022
Merged
Conversation
yevgenypats
approved these changes
Dec 12, 2022
kodiakhq bot
pushed a commit
that referenced
this pull request
Dec 13, 2022
🤖 I have created a release *beep* *boop* --- ## [4.0.0](plugins-source-gcp-v3.2.0...plugins-source-gcp-v4.0.0) (2022-12-13) ### ⚠ BREAKING CHANGES * **gcp:** Only list enabled Services ([#5557](#5557)) * **gcp:** Only List Project Roles ([#5556](#5556)) * **gcp:** `private_key_type` column was removed from the `gcp_iam_service_account_keys` table as it was always populated with `nil`. If you were using it in one of your queries, you can safely remove it. ### Features * **gcp:** Add retrier ([#5522](#5522)) ([bf8c212](bf8c212)), closes [#5514](#5514) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.11.1 ([#5458](#5458)) ([58b7432](58b7432)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.11.2 ([#5497](#5497)) ([c1876cf](c1876cf)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.0 ([#5539](#5539)) ([fb71293](fb71293)) * **gcp:** Fix context to work when syncing ([#5512](#5512)) ([81c8075](81c8075)) * **gcp:** Only list enabled Services ([#5557](#5557)) ([5310bef](5310bef)) * **gcp:** Only List Project Roles ([#5556](#5556)) ([51acb48](51acb48)) * **gcp:** Remove `private_key_type` column from `gcp_iam_service_account_keys` ([1371928](1371928)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
yevgenypats
pushed a commit
that referenced
this pull request
Dec 13, 2022
#### Summary Currently we list *ALL* services... According to GCP docs this can take 30 seconds and takes 15 API calls...The default quota for this is 60 req/min... If we change it to only Enabled services the default quota is 600 req/min and most projects will have fewer than 200 enabled services <!-- Explain what problem this PR addresses --> <!--
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Currently we list ALL services... According to GCP docs this can take 30 seconds and takes 15 API calls...The default quota for this is 60 req/min... If we change it to only Enabled services the default quota is 600 req/min and most projects will have fewer than 200 enabled services