Skip to main content

atmos terraform providers

Use this command to display provider requirements and configurations for an Atmos component's Terraform configuration in a stack.

atmos terraform providers --help

Usage​

Execute the terraform providers command like this:

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

This command shows information about the provider requirements of the configuration in the current working directory.

Atmos Behavior

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

Examples​

Show Providers​

# Display provider requirements
atmos terraform providers vpc -s dev

Show Provider Tree​

# Show providers used by each module
atmos terraform providers vpc -s dev schema

Lock Provider Versions​

# Generate dependency lock file
atmos terraform providers lock vpc -s dev -platform=linux_amd64 -platform=darwin_amd64

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 providers vpc -s dev --skip-init
--dry-run (optional)

Show what would be executed without actually running the command.

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

Native Terraform Flags​

This command supports native terraform providers flags such as Subcommands include schema for detailed schema info, lock for dependency locking, mirror for provider mirroring.