npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cloudgraph/cg-provider-gcp

v0.39.0

Published

CloudGraph provider plugin for GCP used to fetch GCP cloud data.

Downloads

172

Readme

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

| Service | Relations | | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | accessApproval | project | | aiPlatformNotebooks | project, kmsCryptoKeys, network, subnet | | alertPolicy | project | | apiGatewayGateways | project, apiGatewayApis, apiGatewayApiConfigs | | apiGatewayApis | project, apiGatewayGateways | | apiGatewayApiConfigs | project, apiGatewayGateways | | apiKeys | project | | assets | project | | bigQueryDataset | project | | bigQueryConnection | project | | bigQueryDataTransfer | bigQueryDataTransferRun, project | | bigQueryDataTransferRun | project | | bigQueryReservation | project | | bigQueryReservationCapacityCommitment | project | | cdnBackendBucket | project, cdnUrlMap | | cdnBackendService | project, cdnUrlMap, network | | cdnUrlMap | project, cdnBackendBucket, cdnBackendService | | cloudFunction | project, vpcConnectors | | cloudRouters | project | | computeProject | project | | dataprocClusters | project, dataprocJobs, dataprocWorkflowTemplates | | dataprocAutoscalingPolicies | project | | dataprocJobs | project, dataprocClusters | | dataprocWorkflowTemplates | project, dataprocClusters | | kmsCryptoKeys | aiPlatformNotebooks, iamPolicy, kmsKeyRing, project | | dnsManagedZone | project | | dnsPolicy | project, network | | essentialContacts | project | | firestoreDatabases | project | | firewall | network, project | | folder | iamPolicy, organization, project | | kmsKeyRing | kmsCryptoKeys, project | | iamPolicy | folder, kmsCryptoKeys, project | | logBucket | logView, project | | logMetric | project | | logSink | project | | logView | logBucket, project | | network | cloudRouters, dnsPolicy, firewall, project, sqlInstances, subnet, vmInstance, vpcConnectors, cdnBackendService, aiPlatformNotebooks | | organization | folder, project | | project | ALL SERVICES | | secretManager | project | | serviceAccounts | project | | sqlInstances | project, network | | sslPolicies | project, targetHttpsProxies, targetSslProxies | | storageBucket | project | | subnet | project, network, vmInstance, vpcConnectors, aiPlatformNotebooks | | targetSslProxies | project, sslPolicies | | targetHttpsProxies | project, sslPolicies | | vmInstance | project, network, subnet | | vpcConnectors | cloudFunction, project, network, subnet |