The terraform apply command is used to apply the modifications needed either to reach the desired state of the configuration or the pre-determined set of actions generated as per the terraform plan execution plan.
Usage:
terraform apply [options] [dir-or-plan]
By default, Terraform apply scans the current directory for the configuration and applies the appropriate changes. Also, we can provide a path to another configuration or an execution plan.
If you want to learn more about Terraform, then register for this AWS DevOps Certification program by Intellipaat.
Also, watch this video on AWS services with Terraform: