0.39.0 • Published 10 months ago

@cloudgraph/cg-provider-gcp v0.39.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
10 months ago

CloudGraph GCP Provider

Use the CloudGraph GCP Provider to scan and normalize cloud infrastructure using the GCP Client Libraries

Install

Install the GCP provider in CloudGraph

cg init gcp

Authentication

Authenticate the CloudGraph GCP Provider using service account keys:

Multi Account

CloudGraph is able to scan multiple GCP service accounts at once. This is done by entering a project ID and the service account key file location for each service account when running cg init. All resources will be tagged with a projectId so you can query resources specific to a project or query resources across accounts!

Configuration

CloudGraph creates a configuration file at:

  • UNIX: ~/.config/cloudgraph/.cloud-graphrc.json
  • Windows: %LOCALAPPDATA%\cloudgraph/.cloud-graphrc.json

NOTE: CloudGraph will output where it stores the configuration file and provider data as part of the cg init command

CloudGraph will generate this configuration file when you run cg init gcp. You may update it manually or by running cg init gcp again.

"gcp": {
  "accounts": [
    {
      "projectId": "autocloud-sandbox",
      "keyFilename": "/Users/me/autocloud-sandbox.json"
    },
    {
      "projectId": "cloudgraph-sample",
      "keyFilename": "/Users/me/cloudgraph-sample.json"
    }
  ],
  "regions": "us-central1,us-east1",
  "resources": "vpc,project"
}

CloudGraph GCP Provider will ask you what regions you would like to crawl and will by default crawl for all supported resources in selected regions in the default account. You can update the regions or resources fields in the cloud-graphrc.json file to change this behavior. You can also select which resources to crawl in the cg init gcp command by passing the the -r flag: cg init gcp -r

Supported Services

ServiceRelations
accessApprovalproject
aiPlatformNotebooksproject, kmsCryptoKeys, network, subnet
alertPolicyproject
apiGatewayGatewaysproject, apiGatewayApis, apiGatewayApiConfigs
apiGatewayApisproject, apiGatewayGateways
apiGatewayApiConfigsproject, apiGatewayGateways
apiKeysproject
assetsproject
bigQueryDatasetproject
bigQueryConnectionproject
bigQueryDataTransferbigQueryDataTransferRun, project
bigQueryDataTransferRunproject
bigQueryReservationproject
bigQueryReservationCapacityCommitmentproject
cdnBackendBucketproject, cdnUrlMap
cdnBackendServiceproject, cdnUrlMap, network
cdnUrlMapproject, cdnBackendBucket, cdnBackendService
cloudFunctionproject, vpcConnectors
cloudRoutersproject
computeProjectproject
dataprocClustersproject, dataprocJobs, dataprocWorkflowTemplates
dataprocAutoscalingPoliciesproject
dataprocJobsproject, dataprocClusters
dataprocWorkflowTemplatesproject, dataprocClusters
kmsCryptoKeysaiPlatformNotebooks, iamPolicy, kmsKeyRing, project
dnsManagedZoneproject
dnsPolicyproject, network
essentialContactsproject
firestoreDatabasesproject
firewallnetwork, project
folderiamPolicy, organization, project
kmsKeyRingkmsCryptoKeys, project
iamPolicyfolder, kmsCryptoKeys, project
logBucketlogView, project
logMetricproject
logSinkproject
logViewlogBucket, project
networkcloudRouters, dnsPolicy, firewall, project, sqlInstances, subnet, vmInstance, vpcConnectors, cdnBackendService, aiPlatformNotebooks
organizationfolder, project
projectALL SERVICES
secretManagerproject
serviceAccountsproject
sqlInstancesproject, network
sslPoliciesproject, targetHttpsProxies, targetSslProxies
storageBucketproject
subnetproject, network, vmInstance, vpcConnectors, aiPlatformNotebooks
targetSslProxiesproject, sslPolicies
targetHttpsProxiesproject, sslPolicies
vmInstanceproject, network, subnet
vpcConnectorscloudFunction, project, network, subnet
0.39.0-beta.1

10 months ago

0.39.0

10 months ago

0.39.0-alpha.1

10 months ago

0.38.0

12 months ago

0.38.0-alpha.1

12 months ago

0.38.0-beta.1

12 months ago

0.37.2-alpha.1

1 year ago

0.37.2-alpha.2

1 year ago

0.37.2

1 year ago

0.37.2-beta.1

1 year ago

0.37.1-alpha.2

1 year ago

0.37.1-beta.1

1 year ago

0.37.1

1 year ago

0.37.1-alpha.1

1 year ago

0.37.0-alpha.1

1 year ago

0.37.0

1 year ago

0.37.0-beta.1

1 year ago

0.36.0-alpha.1

1 year ago

0.36.0

1 year ago

0.36.0-beta.1

1 year ago

0.35.1-alpha.2

1 year ago

0.35.1-alpha.1

1 year ago

0.35.1

1 year ago

0.35.0

1 year ago

0.35.0-alpha.4

1 year ago

0.35.0-alpha.3

1 year ago

0.35.1-beta.1

1 year ago

0.35.0-beta.1

1 year ago

0.34.2-alpha.2

2 years ago

0.34.2-alpha.1

2 years ago

0.35.0-alpha.2

2 years ago

0.35.0-alpha.1

2 years ago

0.34.1

2 years ago

0.34.0

2 years ago

0.33.0

2 years ago

0.32.1

2 years ago

0.32.0

2 years ago

0.31.0

2 years ago

0.30.0

2 years ago

0.29.0

2 years ago

0.28.2

2 years ago

0.28.1

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.1

2 years ago

0.25.0

2 years ago

0.24.1

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.1

2 years ago

0.22.0

2 years ago

0.21.0

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.18.0

2 years ago

0.17.0

2 years ago

0.16.0

2 years ago

0.15.0

2 years ago

0.14.1

2 years ago

0.14.0

2 years ago

0.13.1

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago