Managed Resources
A resource is an infrastructure component such as a bucket, compute instance, database, or other service in your environment.
A managed resource is controlled with code: when you apply a forma, formae reconciles resource state to match what the forma declares.
New resources may be deployed through formae, or existing resources can be discovered and explicitly brought under management.
Querying managed resources
# View all managed resources
[formae inventory](../../cli/inventory.md) resources --query="managed:true"
# Managed resources of a specific type
[formae inventory](../../cli/inventory.md) resources --query="managed:true type:AWS::S3::Bucket"
# Managed resources in a specific stack
[formae inventory](../../cli/inventory.md) resources --query="managed:true stack:my-app"
# View detailed output in JSON
[formae inventory](../../cli/inventory.md) resources --query="managed:true stack:my-app" --output-consumer machine
Resource references
Managed resources can reference other resources using .res notation. This declares relationships and handles dependencies automatically.
More information: Learn more about how resource references work in Res.