Skip to main content

atmos terraform modules

Use this command to list all Terraform modules used by an Atmos component in a stack.

atmos terraform modules --help

Usage​

Execute the terraform modules command like this:

atmos terraform modules <component> -s <stack> [options]

This command shows all modules referenced in the configuration, including their source locations and versions.

Atmos Behavior

Atmos provides standard setup for this command including automatic terraform init and workspace selection. The module listing is handled by native Terraform.

Examples​

List Modules​

# Show all modules in the configuration
atmos terraform modules vpc -s dev

JSON Output​

# Get module list in JSON format
atmos terraform modules vpc -s dev -json

Arguments​

component (required)

Atmos component name.

Flags​

--stack / -s (required)

Atmos stack name where the component is defined.

--skip-init (optional)

Skip running terraform init before executing the command.

atmos terraform modules vpc -s dev --skip-init
--dry-run (optional)

Show what would be executed without actually running the command.

atmos terraform modules vpc -s dev --dry-run

Native Terraform Flags​

This command supports native terraform modules flags such as -json for JSON output.