Search Articles   Keywords



Terraform Lifecycle

Terraform Lifecycle


  1. 1. Terraform Lifecycle
    1. 1.1. Code
    2. 1.2. Init
    3. 1.3. Plan
    4. 1.4. Validate
    5. 1.5. Apply
    6. 1.6. Destroy

Terraform Lifecycle

Code

This consists of writing or updating your Terraform configuration file.

Init

Initialize your project.

Pull latest providers and modules.

Plan

Speculate what will change or Generate a saved execution plan.

Validate

Ensure types and values are valid.

Ensures required attributes are present.

Apply

Execute the Terraform plan provisioning the infrastructure.

Destroy

Destroy the remote infrastructure.