Replies: 3 comments
-
The purpose of the gcp project resource is to enumerate projects in the organization. Its unclear what you mean by "Using a config file that only has a single project in it".. what config file? the policy example you have have, should return all projects in the organization. you can supply additional server side / api filters in a policy using |
Beta Was this translation helpful? Give feedback.
-
The config file is the one used by
where the contents of the config file
and the contents of the policy file
Since the intended design for the If this is the correct resource, how will one use the The goal is to get the same output from the following gcloud command (docs here):
|
Beta Was this translation helpful? Give feedback.
-
Hey @kapilt
and ran it with the following command:
Where The result is that it again runs the I can see the following block in
with as expected empty So how does one then run a policy for the I have tested with the latest version of Custodian having version |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When running the following policy with
c7n-org
for GCPUsing a config file that only has a single project in it, that returns a result that have all the projects of the GCP Organzition.
What did you expect to happen?
Only the information about the project for the single project should have been returned, not all the projects in the GCP Organization.
Cloud Provider
Google Cloud (GCP)
Cloud Custodian version and dependency information
Policy
Relevant log/traceback output
No response
Extra information or context
Need to get the IAM policies of each Project using this policy
Since the
gcp.project
resource returns all projects, the above policy times out due to the insane number of GCP projects in the organization.This is blocking us from doing any IAM policies on GCP Projects and a critical must have capability.
Beta Was this translation helpful? Give feedback.
All reactions