Path-Based Component Resolution for Terraform, Helmfile, Packer, Describe, and Validate Commands
· 4 min read
Atmos now supports using filesystem paths instead of component names for all component commands. Use . for the current directory, relative paths like ./vpc or ../eks, or absolute paths. This might feel more natural for users accustomed to running commands on folders rather than remembering specific component names.
What's New
You can now use filesystem paths with all component-related commands:
# Navigate to component directory
cd components/terraform/vpc
# Use . to reference current directory
atmos terraform plan . --stack dev
atmos describe component . --stack dev
atmos validate component . --stack dev
This works with all Terraform, Helmfile, and Packer commands that accept a component argument.
Supported Path Formats
Atmos supports all standard ways of specifying paths to components, including:
.- Current directory./component- Relative path from current directory../other-component- Relative path to sibling directory/absolute/path/to/component- Absolute path
Features
- Auto-detection - Atmos automatically detects component type (terraform/helmfile/packer) from the filesystem path
- Stack validation - Validates the component exists in the specified stack configuration
- Interactive selection - When multiple components reference the same path, choose from an interactive menu (in terminals)
- Tab completion - Shell completion works with both paths and component names
- Error handling - Clear error messages when paths can't be resolved
- CI/CD friendly - Gracefully handles non-interactive environments with appropriate errors
