By introducing the previous articles, I believe we already have a general knowledge and understanding of Terraform, practice paper will begin to introduce some of the common commands Terraform.
Terraform is a client-oriented tools, the management of all resources is through Terraform command to achieve. This article will mainly focus on administration and management of state resources to introduce two aspects related to commonly used commands.
1 Resource Management commonly used commands
Terraform management of resources is a major life-cycle management of resources, that is achieve the creation of Terraform template resource as defined by the command, modify, view and delete. Explain part of this, in the previous article " Terraform one minute ECS Ali cloud cluster deployment ," the #3.3
chapter had detailed presentation and demonstration code, we can understand the venue. This article only basic review.
Preview of resources: 1.1 terraform plan
plan
Command is used to preview the template defined resources, mainly for the following scenarios: