Apply configurations
After you finish configuring the providers and describing the infrastructure objects in your Terraform configuration, follow these steps to apply the configuration in your Terraform project:
-
Initialize and install the providers defined in the Terraform configuration:
terraform init
-
Verify that your Terraform project has been properly configured:
terraform plan
If there are any errors, edit the Terraform configuration and re-run the preceding command.
-
Apply the Terraform configuration:
terraform apply
When the system returns a "Apply complete!" message, the Terraform configuration has been successfully applied.
NOTE
After you change the provider versions in the Terraform configuration, you must run
terraform init -upgrade
to initialize the providers and then runterraform apply
again to apply the Terraform configuration.