Commands
- Initialize terraform:
- go to desired folder and run
terraform init
- go to desired folder and run
- Planning terraform:
- To plan changes run
terraform plan - Instructing terraform to create a plan causes terraform to validate the current infrastructure definition against the known state of the infrastructure in the cloud.
- Once evaluated, the output of that plan is printed to the screen.
- No infrastructure changes are made when executing a plan.
- To plan changes run
- Apply terraform:
- To make changes run
terraform apply
- To make changes run
Promotions: dev-us → psr-us → stg-us → prd-XXX