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