Matrix Output for List Instances
· 2 min read
atmos list instances now supports --format=matrix, producing GitHub Actions-compatible JSON for driving parallel CI/CD jobs — the same format already available in atmos describe affected.
What Changed
A new matrix output format generates a {"include":[...]} JSON structure that plugs directly into GitHub Actions strategy.matrix:
atmos list instances --format=matrix
{"include":[{"stack":"ue1-dev","component":"vpc","component_path":"components/terraform/vpc","component_type":"terraform"},{"stack":"ue1-dev","component":"eks","component_path":"components/terraform/eks","component_type":"terraform"}]}
Each entry contains four fields: stack, component, component_path, and component_type.
The --output-file flag writes results in key=value format for $GITHUB_OUTPUT:
atmos list instances --format=matrix --output-file=$GITHUB_OUTPUT
This writes:
matrix={"include":[...]}
count=42