Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 673 Bytes

File metadata and controls

37 lines (27 loc) · 673 Bytes

Terraform Usage

Terraform Startup

terraform init # Initialize the Terraform configuration

terraform plan # Review the plan to see what resources will be created

terraform apply # Apply the configuration to create the resources

Terraform Destroy

terraform destroy # Destroy the resources created by Terraform

Terraform Format

terraform fmt

Terraform Validate

terraform validate

SSH Access

# Get the internal IP, external IP, nginx external IP
terraform output

# SSH into the instance
# (that you already setup the ssh config to use your private key)
ssh <your_username>@<public_ip>