Skip to content

case0sh/terraform-DO-droplets

Repository files navigation

Digital Ocean and Terraform workshop

Prerequisite

  1. Linux workstation.
  2. wget package installed on your workstation.

How to install Terraform?

  1. Download terraform package from terraform.io/downloads.
  • Version for amd64
wget https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_linux_amd64.zip -O /tmp/terraform.zip
  • Version for arm64
wget https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_linux_arm64.zip -O /tmp/terraform.zip
  1. Unzip the terraform binary to a directory which is included in your system PATH.
sudo unzip /tmp/terraform.zip -d /usr/local/bin/
  1. Reload your shell.
exec -l $SHELL
  1. Verify installation.
terraform --help

How to run Terraform project?

  1. Navigate to terraform project directory.

  2. Make some changes in terraform.tfvars

  3. Fill the code where mentioned Update:

  4. Initialize terraform project.

terraform init
  1. Generate terraform execution plan.
terraform plan
  1. Run terraform apply, if plan looks good.
terraform apply
  1. For check your droplets.
terraform show
  1. For clean-up, destroy all the resources created by terraform.
terraform destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published