Enterprise Deployment Guide

Sync your graph with live cloud inventory using Data Generators with TTL caching and force-refresh options.

Cloud Provider Discovery

To keep your graph synchronized with reality, use Data Generators to fetch live cloud inventory directly from provider APIs.

Caching with TTL

Cloud APIs rate-limit requests and can be slow. Always configure a ttl (Time-To-Live) for discovery generators in module.toml so you aren’t hitting the API on every local run or minor CI commit.

[generators.aws_ec2]
target_input = "aws_ec2.json"
command = ["aws", "ec2", "describe-instances", "--output", "json"]
from_stdout = true
ttl = "4h" # Only run every 4 hours during normal operations

Force Refreshing

In a CI/CD pipeline, if you want to ensure the graph reflects the absolute latest state (for example, on a nightly comprehensive build), run the importer with the --refresh-generators flag to bypass all TTLs.

Tooling

Instead of writing custom scripts, standard CLIs like aws, az, or gcloud can be invoked directly by rescile to generate JSON inputs.