Initialize Terraform

terraform init -input=false

The -input=false will make the process exit if any inputs are required.

Plan

Dump the plan to a file to be applied later.

terraform plan -input=false -compact-warnings -out=plan.file 

Apply

terraform apply -input=false -compact-warnings plan.file