the `atmos terraform plan --affected` is basically...
# atmos
p
the
atmos terraform plan --affected
is basically a describe affected + plan? I ask because of the copy commands happening here
Copy code
DEBU Set logs-level=debug logs-file=/dev/stderr
DEBU Found config ENV ATMOS_CLI_CONFIG_PATH=./atmos/config
DEBU Found ENV variable ATMOS_BASE_PATH=./atmos
DEBU Found config ENV ATMOS_CLI_CONFIG_PATH=./atmos/config
DEBU Found ENV variable ATMOS_BASE_PATH=./atmos
DEBU Found config ENV ATMOS_CLI_CONFIG_PATH=./atmos/config
DEBU Found ENV variable ATMOS_BASE_PATH=./atmos
DEBU Set using command line argument --logs-level=Debug
DEBU Atmos JSON Schema is not configured. Using the default embedded schema
DEBU Validating all YAML files in the folder and all subfolders (excluding template files) folder=atmos/stacks
DEBU Copying the local repo into temp directory dir=/tmp/3918833686
DEBU Copied the local repo into temp directory dir=/tmp/3918833686
DEBU Checking out Git ref=refs/remotes/origin/HEAD
DEBU Checked out Git ref=refs/remotes/origin/HEAD
DEBU Current HEAD="cb8d0695f7bd445101b40c HEAD"
DEBU Current BASE="91a4a3b471ea17915b40cd2b HEAD"
a
yes, it executes describe affected under the hood
p
and can I tell it where to find the base-ref?
a
all CLI flags from
describe affected
are supported
p
ok, I will try
a
note the difference when using
--include-dependents
Copy code
# Execute the `terraform apply` command on all components affected by the changes
# in the current branch, in all stacks, in dependency order.
# Assume that the components `vpc` and `eks/cluster` in all stacks are affected (e.g. just added).

> atmos terraform apply --affected --dry-run

Executing command="atmos terraform apply vpc -s nonprod"
Executing command="atmos terraform apply eks/cluster -s nonprod"

Executing command="atmos terraform apply vpc -s prod"
Executing command="atmos terraform apply eks/cluster -s prod"
Copy code
# Execute the `terraform apply` command on all the components affected by the changes
# in the current branch, in all stacks.
# For each directly affected component, detect the dependent components and process
# them in dependency order, recursively.
# Dependents are components that are indirectly affected, meaning that nothing in the
# current branch modifies their code or configs, but they are configured as
# dependencies of the components that are modified.

> atmos terraform apply --affected --include-dependents --dry-run

Executing command="atmos terraform apply vpc -s nonprod"
Executing command="atmos terraform apply eks/cluster -s nonprod" dependency of component=vpc in stack=nonprod
Executing command="atmos terraform apply eks/karpenter -s nonprod" dependency of component=eks/cluster in stack=nonprod
Executing command="atmos terraform apply eks/karpenter-node-pool -s nonprod" dependency of component=eks/karpenter in stack=nonprod
Executing command="atmos terraform apply eks/external-dns -s nonprod" dependency of component=eks/cluster in stack=nonprod
Executing command="atmos terraform apply eks/istio/base -s nonprod" dependency of component=eks/cluster in stack=nonprod
Executing command="atmos terraform apply eks/istio/istiod -s nonprod" dependency of component=eks/istio/base in stack=nonprod
Executing command="atmos terraform apply eks/istio/test-app -s nonprod" dependency of component=eks/istio/istiod in stack=nonprod

Executing command="atmos terraform apply vpc -s prod"
Executing command="atmos terraform apply eks/cluster -s prod" dependency of component=vpc in stack=prod
Executing command="atmos terraform apply eks/external-dns -s prod" dependency of component=eks/cluster in stack=prod
Executing command="atmos terraform apply eks/istio/base -s prod" dependency of component=eks/cluster in stack=prod
Executing command="atmos terraform apply eks/istio/istiod -s prod" dependency of component=eks/istio/base in stack=prod
Executing command="atmos terraform apply eks/istio/test-app -s prod" dependency of component=eks/istio/istiod in stack=prod
Executing command="atmos terraform apply eks/karpenter -s prod" dependency of component=eks/cluster in stack=prod
Executing command="atmos terraform apply eks/karpenter-node-pool -s prod" dependency of component=eks/karpenter in stack=prod