main.tf
, using the CLI.$ terraform plan
identifies the changes that need to be made to your target environment in order to match your desired state.--scan=
option.--scan=resource-changes
is the default behavior. This scans only the changes that would be made to your infrastructure if you ran $ terraform apply
.--scan=planned-values
scans the full planned state, providing results of the existing infrastructure plus changes that will be made.tf-plan.json
file according to your needs.--scan=planned-values
option.--experimental
is not required anymore when testing your Terraform projects.