github cloudposse/atmos v1.140.0

latest releases: v1.143.0, v1, v1.142.0...
one day ago
Add `--query` (shorthand `-q`) flag to all `atmos describe ` commands @aknysh (#920)

what

  • Added --query (shorthand -q) flag to all atmos describe <subcommand> commands
  • Updated CLI command documentation to reflect new querying functionality
  • Added examples for new query-based commands

why

  • Query (and filter) the results of atmos describe <subcommand> commands using yq expressions
  • Before, an external yq or jq binary was required to query/filter the results of atmos describe commands. With the yq functionality now embedded in Atmos, installing the yq binary is not required

examples

atmos describe component vpc -s plat-ue2-prod --query .vars
atmos describe component vpc -s plat-ue2-prod -q .vars.tags
atmos describe component vpc -s plat-ue2-prod -q .settings
atmos describe component vpc -s plat-ue2-prod --query .metadata.inherits

atmos describe stacks -q keys  # this produces the same result as the native `atmos list stacks` command

atmos describe config -q .stacks.base_path

atmos describe workflows -q '.0 | keys'

atmos describe affected -q <yq-expression>

atmos describe dependents -q <yq-expression>

references

Don't miss a new atmos release

NewReleases is sending notifications on new releases.