Nodestream Google Cloud Asset Inventory Plugin
This repo contains a Nodestream plugin to import Cloud Assets and Policies from GCP Asset Inventory into a graph database. Nodestream is a declarative framework for Building, Maintaining, and Anaylzing Data in a Graph Database.
Features
- Automated download of Asset and Policy data from GCP Asset Inventory and import into a graph database
- Graph data model supports exploration and analysis of GCP Resources
Getting Started
Setup Neo4j
- You can create an Aura instance here
- or
- You can run Neo4j in a docker container like this:
docker run \
--restart always \
--publish=7474:7474 --publish=7687:7687 \
--env NEO4J_PLUGINS='["apoc"]' \
neo4j:5
- Initial credentials are username: neo4j, password: neo4j
Authenticate to GCP
- Follow documentation here to authenticate to Google Cloud
Install Nodestream
pip install nodestream
Install Nodestream Plugin
pip install nodestream-plugin-gcp-asset-inventory
Configure Nodestream
- Add the following to nodestream.yaml
plugins:
- name: gcp_asset_inventory
config:
project_id: <insert your GCP project ID>
targets:
my-db:
database: neo4j
uri: bolt://localhost:7687
username: neo4j
password: yourPassword
Preparing the database with Nodestream Migrations
-
nodestream migrations make -
nodestream migrations run --target my-db
Run the Pipelines
-
nodestream run gcpAsset --target my-db -
nodestream run gcpPolicy --target my-db
Metadata
Release files for nodestream-plugin-gcp-asset-inventory 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nodestream_plugin_gcp_asset_inventory-0.1.5.tar.gz | 3.0 kB | Without provenance | Details for nodestream_plugin_gcp_asset_inventory-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nodestream_plugin_gcp_asset_inventory-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for nodestream_plugin_gcp_asset_inventory-0.1.5-py3-none-any.whl |
Total release size: 8.9 kB
Release files / nodestream_plugin_gcp_asset_inventory-0.1.5.tar.gz
| Download URL | nodestream_plugin_gcp_asset_inventory-0.1.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a3075bc51a544b58d87f6675a9ab0c412f7fe9138bd7390cc6afe1574e8c91c
|
|
BLAKE2b-256 checksum How to use checksums |
3317e478d37c54fa72ab683362aa84d50b489b9f7a10cbdb97b8410047a668d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.4.0
|
Release files / nodestream_plugin_gcp_asset_inventory-0.1.5-py3-none-any.whl
| Download URL | nodestream_plugin_gcp_asset_inventory-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aec270122f0d9df8a049d3f1ff7b7ff8776dc97883ae2fad738a67ee9ffe5334
|
|
BLAKE2b-256 checksum How to use checksums |
f7634409b726d79356c5ec9bd166f928c248fc84b587a074af60a06ee06c19b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.4.0
|
Security for nodestream-plugin-gcp-asset-inventory 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.