We are going to provision this infrastructure using Terraform
# shows the state of all resources
terraform show
# shows the state of a specific resource
terraform state show my_resource
# shows a list of resources
terraform state list
# getting rid of the confirmation dialog
# very useful in automation
terraform apply -auto-approve
terraform destroy -auto-approve
# to replace a resource that is already applied
# situations where only using terraform apply command won't show change (like when we add provisioners)
terraform apply -replace aws_instance.my_instance
# can be used to play with terraform env (like finding values of variables)
terraform console
# to override any input variable for sure
terraform apply -var="vpc_cidr_block=10.0.0.0/16"
# to use another separate .tfvars file instead of terraform.tfvars
terraform apply -var-file"new.tfvars"
# used to get outputs that we have setup in outputs.tf file
terraform output